-->
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.  [ 8 posts ] 
Author Message
 Post subject: Detached entity passed to persist
PostPosted: Fri Sep 22, 2006 8:38 am 
Beginner
Beginner

Joined: Sun Aug 13, 2006 8:40 am
Posts: 28
Hibernate version:
Shipped with JBoss 4.0.4.GA.

Mapping documents:
Annotations:
@ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@JoinColumn(name = "myRole", nullable = false)

Code between sessionFactory.openSession() and session.close():
N/A using the entity manager...

Exception that occurs:
Code:
javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.PersistentObjectExcept
ion: detached entity passed to persist: a.package.B


Name and version of the database you are using:
Hypersonic which is shipped with JBoss 4.0.4.GA

I get this exception when I try to persist an entity (A) which relates to another entity (B). The original thread: http://www.jboss.org/index.html?module= ... 40#3973540"

I am in need of help...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 22, 2006 3:52 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
what is the version number printed in the console for HAN and HEM?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 25, 2006 4:38 am 
Beginner
Beginner

Joined: Sun Aug 13, 2006 8:40 am
Posts: 28
how do I find this information? Is it stated when the server starts up or on deploy of EJBs?

Most of my Hibernate packages has debug level INFO, is this sufficient?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 25, 2006 10:32 am 
Beginner
Beginner

Joined: Sun Aug 13, 2006 8:40 am
Posts: 28
Please Help!

I am trying to find a solution for this problem by the end of this week and am not impressed by the speed on the forums of Hibernate and JBoss...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 10:52 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
jactor wrote:
I am trying to find a solution for this problem by the end of this week and am not impressed by the speed on the forums of Hibernate and JBoss...


This forum is based on free contribution on a voluntary basis. If you didn't get any response, it's because people are too busy, or think that you haven't provided enough effort yourself.
If you need support in a timely manner, please consider a JBoss commercial support contract.

Yes INFO is enough. you should see
Hibernate Annotations 3.2.0.CR2
Hibernate EntityManager 3.2.0.CR2

or something equivalent

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 29, 2006 3:04 am 
Beginner
Beginner

Joined: Sun Aug 13, 2006 8:40 am
Posts: 28
Yes, it is easy to see that you make your money out of support. I do not posess the funds to pay for this, so I have to wait and see if someone can help me free of charge. Sorry!

And...
Quote:
Hibernate Annotations 3.2.0.CR2
Hibernate EntityManager 3.2.0.CR2

... what is it you want me to do? Is this entity manager a part of jboss.4.0.4.GA? What annotations will help me? Where can I find the documentation needed (without reading five books before finding an solution that does not fit but can be converted to my problem)?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 29, 2006 3:31 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
dude I ask you to look at a version number on a dumb log. and give you the expected log to make the search easier. I cannot look at it for you!

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 02, 2006 5:13 am 
Beginner
Beginner

Joined: Sun Aug 13, 2006 8:40 am
Posts: 28
Ok, I understand that I shall look in a dumb log...

But I said earlier:
Quote:
how do I find this information? Is it stated when the server starts up or on deploy of EJBs?

Most of my Hibernate packages has debug level INFO, is this sufficient?


I will suspect that this information is logged with log4j... What component is doing this logging? ...and as I asked earlier, is INFO a sufficient level to find this logging? Is it logged on every deploy or on startup?


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