tag:blogger.com,1999:blog-16500981.post4757326816520641780..comments2023-09-28T18:11:20.365+07:00Comments on living in java: Many to many relationship in JPASantosohttp://www.blogger.com/profile/01534214022898572802noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-16500981.post-18334548208471152012008-04-17T19:00:00.000+07:002008-04-17T19:00:00.000+07:00Hi,I tried to use the same but the returned collec...Hi,<BR/><BR/>I tried to use the same but the returned collection when accessed gives null value. Can u pls provide the solution for this at the earliest.<BR/><BR/>Thanks in advanceAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-16500981.post-6169964863932638432008-03-12T15:00:00.000+07:002008-03-12T15:00:00.000+07:00I'm using Hibernate's, the one that come with JBos...I'm using Hibernate's, the one that come with JBoss.<BR/><BR/>do you know the similar property for Hibernate?Santosohttps://www.blogger.com/profile/01534214022898572802noreply@blogger.comtag:blogger.com,1999:blog-16500981.post-75100301201927767512008-03-11T02:22:00.000+07:002008-03-11T02:22:00.000+07:00What JPA provider do you use? I normally use OpenJ...What JPA provider do you use? I normally use OpenJPA.<BR/><BR/>With OpenJPA, if you use foreign keys in your underlying database (and you should), set this option in your persistence.xml:<BR/><BR/><property name="openjpa.jdbc.SchemaFactory" value="native(ForeignKeys=true)"/><BR/><BR/>OpenJPA will now automatically insert, update and delete records in the various tables in the right order. No constraint exceptions!Anonymousnoreply@blogger.com