Re: cascading deletes and entity relationship constraints

2009-05-11 Thread Adam Hardy
Just a quick apology up-front because I haven't had time to follow up my problem myself. I fully intend to at some point soon, but in the meantime, I am having problems with cascading inserts, which I think may be closely related, so I thought I'd add it into this thread. I create a child and

Re: TABLE_PER_CLASS does not work as described in JSR-220 (JPA-1.0)

2009-05-11 Thread hallmit
Thanks guys, I put @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) to AbstractFoo and now it works fine...I have also put @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) to the first concrete class of my class hierarchy otherwise the SINGLE_TABLE strategy is used for the branch.

Re: TABLE_PER_CLASS does not work as described in JSR-220 (JPA-1.0)

2009-05-11 Thread Pinaki Poddar
You are right. OpenJPA should use the inheritance strategy used at the root of the hierarchy throughout the derived tree. The extra strategy specification perhaps is resulting from the facility to support mixed strategy. Needs further investigation... hallmit wrote: > > Thanks guys, I put @Inhe

Need to map a strange table structure

2009-05-11 Thread Matt Higgins
I am building out an object model and services for an existing relational model and the table structure is a little strange and I am having trouble with the object mapping. Here are the details We have 2 tables company with primary key id 12M_company_venue with columns parent_company_id venue_co

Re: TABLE_PER_CLASS does not work as described in JSR-220 (JPA-1.0)

2009-05-11 Thread Serge Bogatyrev
This mixed strategy can be very usefull. But obviously there is uncompatibility with standards. I think that additional annotation can be used to change standard behaviour. So, at this example strict TABLE_PER_CLASS strategy should work without any additional annotations. And to get the mixed s

correct way to load persistent metadata at startup

2009-05-11 Thread Heather Sterling
I am attempting to load all the persistent class metadata eagerly. I realize this isn't great performance-wise, but I need to do it for the time-being. I had wanted to call: ClassMetaData[] classMetaDatas = conf.getMetaDataRepositoryInstance().getMetaDatas(); but realized the dat

Re: TABLE_PER_CLASS does not work as described in JSR-220 (JPA-1.0)

2009-05-11 Thread Craig L Russell
Hi Serge, Could you please open a JIRA so we can track this issue? Thanks, Craig On May 11, 2009, at 11:03 AM, Serge Bogatyrev wrote: This mixed strategy can be very usefull. But obviously there is uncompatibility with standards. I think that additional annotation can be used to change st