Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Persistence Error - Unable to find solution (Need help getting past mind block...)
Persistence Error - Unable to find solution [message #892060] Tue, 26 June 2012 23:12 Go to previous message
Josh Toepfer
Messages: 3
Registered: June 2012
Location: Milwaukee, WI
Junior Member
I have an Entity A which has a OneToOne relationship with Entity B. I use the Springframework to setup the EntityManager. When I create a new Entity A and set anything on this Entity it throws an throwable error.

java.lang.NoSuchMethodError: com.sample.EntityA._persistence_checkFetched(Ljava/lang/String;)V

I'm looking for some direction on how to solve the problem.

try {
   EntityA entityA = buildEntityA(criteria);
   persistEntity(entityA);
}
catch(Throwable th) {
  logger.error("", th);
}


private EntityA buildEntityA(criteria) {
  EntityA entityA = new EntityA();

  EntityB entityB = resolveEntityB(criteria);

  entityA.setEntityB(entityB);  // <-- location of when the error is thrown 
}


@Entity
public class EntityA implements Serializable {

  private Long id;
  private EntityB entityB;

... accessors/mutators
}


@Entity
public class EntityB implements Serializable {

  private Long id;

... accessors/mutators
}
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:Need some help with eclipselink versions
Next Topic:Connect with MS-SQL "lock"
Goto Forum:
  


Current Time: Sat May 25 06:44:33 EDT 2013

Powered by FUDForum. Page generated in 0.01602 seconds