Re: relationship between the entities (database tables) in tapestry 5

2009-04-21 Thread kk4Nabble
Thanks a lot for the reply.:-) Otho wrote: > > This is hibernate/jpa specific and has nothing to do with Tapestry. So > yes, > it should work if it did before. > > 2009/4/21 kk4Nabble > >> >> Hi all, >> >> If we wanted to have one to one relationship to other entity, in >> tapestry >> 4 >>

Re: relationship between the entities (database tables) in tapestry 5

2009-04-21 Thread Otho
This is hibernate/jpa specific and has nothing to do with Tapestry. So yes, it should work if it did before. 2009/4/21 kk4Nabble > > Hi all, > > If we wanted to have one to one relationship to other entity, in tapestry > 4 > we used to do in following way. > > @OneToOne(cascade = CascadeType.RE

Re: relationship between the entities (database tables) in tapestry 5

2009-04-21 Thread Ulrich Stärk
This has nothing to do with Tapestry, it's a matter of your object/relational mapper. Uli Am 21.04.2009 13:20 schrieb kk4Nabble: Hi all, If we wanted to have one to one relationship to other entity, in tapestry 4 we used to do in following way. @OneToOne(cascade = CascadeType.REFRESH, fetc

relationship between the entities (database tables) in tapestry 5

2009-04-21 Thread kk4Nabble
Hi all, If we wanted to have one to one relationship to other entity, in tapestry 4 we used to do in following way. @OneToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY) @JoinColumn(name = "detail_oid") public Detail getDetail() { return Detail;