Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fixture {
- //NOTE: you must use the instance that you create!!
- def sdf = new java.text.SimpleDateFormat("yyyy-MM-dd")
- def begindate = sdf.parse("2009-07-20")
- def enddate = sdf.parse("2009-09-20")
- def yes = true
- def no = false
- binneyd(User, username:"binneyd", lastName:"Binney", firstName:"David", type:"ADMIN", phone:"0749282345")
- bassnetp(User, username:"bassnetp", lastName:"Praj", firstName:"Bassnet", type:"ADMIN", phone:"0749282312")
- s0000001(User, username:"S0000001", lastName:"Talbert", firstName:"Don", type:"STUDENT", phone:"0749282346")
- s0000002(User, username:"S0000002", lastName:"Spears", firstName:"Brittany", type:"STUDENT", phone:"0749282347")
- s0000003(User, username:"S0000003", lastName:"Paul", firstName:"McArtney", type:"STUDENT", phone:"0749282348")
- s0000004(User, username:"S0000004", lastName:"Young", firstName:"Angus", type:"STUDENT", phone:"0749282349")
- //offering information
- coit13132(Availability, type:"COURSE", value:"COIT13132")
- cois12132(Availability, type:"COURSE", value:"COIS12132")
- hmsc20012(Availability, type:"COURSE", value:"HMSC20012")
- bit(Availability, type:"PROGRAM", value:"BIT")
- policeCheck(Prerequisite, name:"Police Check", desc:"This is the police check desc", required:yes)
- blueCard(Prerequisite, name:"Police Check", desc:"This is the police check desc", required:no)
- onlineForm(Prerequisite, name:"Online Form", desc:"This is a possible online form that need to be filled out", required:yes)
- wedThurs(Offering, desc:"Placement for wed-thurs", strm:"2092", availabilities: [bit, hmsc20012])
- monTues(Offering, desc:"Placement for wed-thurs", strm:"2092", availabilities: [coit13132, cois12132])
- prac(Offering, desc:"Placement for wed-thurs", strm:"2092", availabilities: [bit])
- firsYear(Placement, name:"First Year Placement", category:"NURSING", desc:"The first year students",
- offerings: [monTues, wedThurs],
- prerequisites: [policeCheck, blueCard, onlineForm]
- )
- secondYear(Placement, name:"Second Year Placement", category:"NURSING", desc:"The first year students",
- offerings: [monTues, wedThurs],
- prerequisites: [policeCheck]
- )
- thirdYear(Placement, name:"Third Year Placement", category:"MIDWIFERY", desc:"The first year students",
- offerings: [prac],
- prerequisites: [policeCheck]
- )
- firstYearOffering(AreaOffering, availableSpots:12, desc:"area offering desc", enddate:enddate, startdate:begindate, offering: prac)
- //org information
- emergency(Area, name:"Emergency", desc:"The emergency ward", city:"Rockhampton", address:"123 hilly road", areaOfferings:[firstYearOffering])
- surgical(Area, name:"Surgical", desc:"The Surgical ward", city:"Rockhampton", address:"123 hilly road")
- ward(Area, name:"Ward", desc:"The ward", city:"Rockhampton", address:"123 nobby road")
- security(Area, name:"Security", desc:"Security", city:"Rockhampton", address:"123 nobby road")
- base(Organisation, name:"Base Hospital", desc:"The base hospital", areas:[emergency, surgical])
- marter(Organisation, name:"Marter Hospital", desc:"The Marter hospital", areas: [ward, security])
- /*
- */
- }
Add Comment
Please, Sign In to add comment