-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Can't set cascade persist in orm.xml file
PostPosted: Tue May 29, 2007 9:51 am 
Senior
Senior

Joined: Mon Jul 24, 2006 8:43 am
Posts: 160
Hi,
I want to set the cascade persist option for my entire entity model.
According to JPA spec I should be able to do this by incluing <cascade-persist/> in my ORM.xml file.

I set up my ORM.xml file as show below, include in my jar beside the persistence.xml file, i.e. META-INF and I do not see any cascade persist behaviour. I only see cascade persists when I include the annotations.

any ideas what could be wrong?
More details below:




Hibernate version:
Annotations: Version: 3.2.0 CR1
Core: version 3.2 cr2
EntityManager3.2.0 CR1

Mapping documents:

<?xml version="1.0" encoding="UTF-8" ?>
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
version="1.0">
<persistence-unit-metadata>
<persistence-unit-defaults>
<cascade-persist/>
</persistence-unit-defaults>
</persistence-unit-metadata>
</entity-mappings>


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 29, 2007 3:18 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
can you open a JIRA issue with a reproducable testcase, I'm pretty sure it's covered, but one never know

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 30, 2007 1:10 pm 
Senior
Senior

Joined: Mon Jul 24, 2006 8:43 am
Posts: 160
done:
http://opensource.atlassian.com/project ... se/EJB-291


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.