Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Problems with embeddable entities

Hi James, 

I think I've found my mistake.

In myproject I have some entities and also I import some libraries made by other sectors of my company. Well, in one of these libraries there are some pojos which I embedd in some of my own entities. The problem arises when I try to merge one of my entities with a "foreign" pojo. As the weaver just changes my own entities, eclipselink seems to not see changes in the embedded field.

As a solution I created local entities for embedding purposes and, when necessary, I convert the foreign entities into my local ones.

Well, just registered my situation for eventual people with the same problem.

Regards,

Loreno

2010/5/18 James Sutherland <jamesssss@xxxxxxxxx>

Could you include the code you use to persist the object.  Is this an insert
or an update?

Could you try the latest EclipseLink release and see if the issue still
occurs.



Loreno Oliveira wrote:
>
> Hi there,
>
> we are facing a strange behavior of eclipselink in one of our projects.
> The
> scenario is: eclipselink 1.0.2 and JBoss 4.2.2. We are applying static
> weaving before deploying to JBoss. The problem is that the embedded entity
> is not being persited when the parent entity is persisted. If we do not
> apply the weaving then the persist works fine, but it is not working after
> the static weaving.
>
> So, this is the problema. I could not find anything related to this in the
> web. Maybe any of you have some advice of what is going wrong here...
>
> Thanks in advance for any help!
>
> Loreno
>
>
>


-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink ,
http://wiki.oracle.com/page/TopLink TopLink
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
http://www.nabble.com/EclipseLink-f26430.html EclipseLink
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
--
View this message in context: http://old.nabble.com/Problems-with-embeddable-entities-tp28552023p28599682.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.

_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users


Back to the top