Internal Website Search

1-10 of 94 resultsRefresh

LAZY @ManyToOne field functions as EAGER

am able to print to console a lazy @ManyToOne field after the entity manager closes. There is a switch ... entity manager closes and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field ... , when it is marked as @ManyToOne(fetch=FetchType.LAZY) ?  

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

.cmdline.objdb.CompoundKeyMapItem.container (javax.persistence.Id, javax.persistence.ManyToOne) (error ... , javax.persistence.ManyToOne) at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.JPA.d(JPA ... javax.persistence.ManyToOne; import javax.persistence.Version; @Entity @IdClass(CompoundKeyMapItem

Broken @ManyToOne reference

@ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false) private B b; @Id ... javax.persistence.Id; import javax.persistence.ManyToOne; import javax.persistence ... ; @ManyToOne(fetch = FetchType.EAGER)   public AbstractParent prn; } the output

ObjectDB Explorer don't show ManyToOne relations

and @ManyToOne relations. We persist the entity FolderImpl that has an attribute of type ModelElement ... ;  ... } @Entity public class FolderImpl {     @ManyToOne ... class FolderImpl {     @ManyToOne (targetEntity = ModelElementImpl.class, cascade

javax.persistence.ManyToOne

Annotation ManyToOne The ManyToOne @ManyToOne(optional=false) @JoinColumn(name="CUST_ID

ManyToOne.fetch

Annotation Element ManyToOne" title="Annotation in javax.persistence">javax.persistence.ManyToOne

ManyToOne.cascade

Annotation Element ManyToOne" title="Annotation in javax.persistence">javax.persistence.ManyToOne

ManyToOne.targetEntity

Annotation Element ManyToOne" title="Annotation in javax.persistence">javax.persistence.ManyToOneClass targetEntity

ManyToOne.optional

Annotation Element ManyToOne" title="Annotation in javax.persistence">javax.persistence.ManyToOneboolean optional

Retrieving JPA Entity Objects

/jpa/Entity">@Entity class Employee { : ManyToOne">@ManyToOne(ManyToOne/fetch">fetch=FetchType ... /OneToOne">@OneToOne or ManyToOne">@ManyToOne