yousuf.haque
01/24/2017, 1:32 AMbodiam
01/24/2017, 1:42 AMyousuf.haque
01/24/2017, 1:44 AMbodiam
01/24/2017, 2:18 AMyousuf.haque
01/24/2017, 2:20 AMyousuf.haque
01/24/2017, 2:21 AMbodiam
01/24/2017, 2:38 AMbodiam
01/24/2017, 2:38 AMmax.
01/24/2017, 5:05 AM@ContextConfiguration
. Then rewrite it on
@RunWith(SpringRunner::class)
@SpringBootTest
@ActiveProfiles("test")
sdeleuze
01/24/2017, 8:09 AMsdeleuze
01/24/2017, 8:10 AMyousuf.haque
01/24/2017, 3:27 PMsdeleuze
01/24/2017, 3:28 PMyousuf.haque
01/24/2017, 3:29 PMyousuf.haque
01/24/2017, 3:29 PMgilbertj
01/25/2017, 7:10 AMCaused by: org.hibernate.annotations.common.AssertionFailure: Fail to process type argument in a generic declaration. Member
gilbertj
01/25/2017, 7:11 AMgilbertj
01/25/2017, 7:11 AM@Entity
class Region() {
constructor(coordinator: Coordinator,
storeLocation: StockLocation,
teacherTrainers: Set<TeacherTrainer>,
schools: Set<School>,
events: Set<TrainingEvent>) : this(){
this.coordinator = coordinator
this.storeLocation = storeLocation
// this.teacherTrainers = teacherTrainers
this.schools = schools
this.events = events
}
@OneToOne
lateinit var coordinator: Coordinator
@OneToOne
lateinit var storeLocation: StockLocation
@OneToMany
lateinit var schools: Set<School>
@OneToMany(targetEntity = TeacherTrainer::class)
lateinit var teacherTrainers: Set<TeacherTrainer>
@OneToMany
lateinit var events: Set<TrainingEvent>
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
val id: Int? = null
}
gilbertj
01/25/2017, 7:13 AMgilbertj
01/25/2017, 7:13 AMgilbertj
01/25/2017, 7:13 AMgilbertj
01/25/2017, 7:15 AMgilbertj
01/25/2017, 7:15 AMgilbertj
01/25/2017, 7:26 AMgilbertj
01/25/2017, 7:43 AMgilbertj
01/25/2017, 7:43 AMsdeleuze
01/25/2017, 8:18 AMgilbertj
01/25/2017, 8:19 AMgilbertj
01/25/2017, 8:20 AM