Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Hibernate Reverse Engineering add orphanRemoval to OneToMany
PostPosted: Wed Mar 23, 2016 5:49 am 
Newbie

Joined: Wed Mar 23, 2016 5:44 am
Posts: 2
Hi,

I like to generate following annotation:

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "residualValueMatrix", orphanRemoval = true)

How can I add the orphanRemoval = true ?
I set the Cascade.ALL by using the foreign key property in the hibernate.reveng.xml .

Thank you!


Top
 Profile  
 
 Post subject: Re: Hibernate Reverse Engineering add orphanRemoval to OneToMany
PostPosted: Fri Apr 01, 2016 5:05 am 
Newbie

Joined: Wed Mar 23, 2016 5:44 am
Posts: 2
Cross posted on https://developer.jboss.org/message/953892 as I didn't receive any reply.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.