Advertisement
Guest User

Untitled

a guest
May 14th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.21 KB | None | 0 0
  1. class TestCaseVersion {
  2.  
  3.     static constraints = {
  4.         createdBy nullable: true
  5.         createdById nullable: true
  6.         lastUpdated nullable: true
  7.         lastUpdatedBy nullable: true
  8.         number nullable: true
  9.         summary maxSize: 65535, nullable: true
  10.         preconditions maxSize: 65535, nullable: true
  11.         testCaseId nullable: true
  12.         priorityId nullable: true
  13.         executionTypeId nullable: true
  14.     }
  15.  
  16.     static belongsTo = [testCase: TestCase]
  17.  
  18.     static hasMany = [testCaseVersionCustomValues: TestCaseVersionCustomValue, steps: TestStep]
  19.  
  20.     static mapping = {
  21.         testCaseId formula: 'test_case_id'
  22.         createdById formula: 'created_by_id'
  23.         version false
  24.         id generator: 'sequence', params: [ sequence_name: 'test_case_versions_sequence' ]
  25.         obsolete defaultValue: 'false'
  26.         immutable defaultValue: 'false'
  27.     }
  28.  
  29.     String name
  30.     Date dateCreated
  31.     Date lastUpdated
  32.     User createdBy
  33.     Long createdById
  34.     User lastUpdatedBy
  35.     Long testCaseId
  36.     Short number
  37.     String summary
  38.     String preconditions
  39.     Boolean obsolete = false
  40.     Boolean immutable = false
  41.     Byte priorityId
  42.     Byte executionTypeId
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement