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.



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

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

----- James Sutherland
 EclipseLink ,
Wiki: EclipseLink , TopLink
Forums: TopLink , EclipseLink
Book: Java Persistence
View this message in context:
Sent from the EclipseLink - Users mailing list archive at

eclipselink-users mailing list

Back to the top