Home » Search

About ManyToOne

11-20 of 85Refresh
Forum
23

ObjectDB Explorer don't show ManyToOne relations

Hello support. we have a problem with the ObjectDB Explorer and @ManyToOne relations. We persist ... ModelElement {     ... } @Entity public class FolderImpl {     @ManyToOne (targetEntity ... for the attributes. public class FolderImpl {     @ManyToOne (targetEntity = ModelElementImpl
Forum
22

Level 2 cache not hit in @ManyToOne

Hi! I have 2 entities: User and Item, both @Cacheable. Item has @ManyToOne private User user. Level 2 JPA cache is activated and it works ok for find by id (tested by changing data in explorer and reading in my app). Problem 1: find by id on Item it's good, it hits the cache, but not for its field
Manual
22

Retrieving JPA Entity Objects

using a lazy fetch type: @Entity class Employee { : @ManyToOne(fetch=FetchType.LAZY ... FetchType.LAZY in either @OneToOne or @ManyToOne annotations (currently ObjectDB does not distinguish
JPA Doc
11

javax.persistence.JoinColumn

: @ManyToOne @JoinColumn(name="ADDR_ID") public Address getAddress() { return address; } Example ... getOrders() {return orders;} Since: JPA 1.0 See Also: ManyToOne OneToMany OneToOne JoinTable ... . If the join is for a OneToOne or ManyToOne mapping using a foreign key mapping strategy
JPA Doc
6

javax.persistence.AssociationOverride

Employee { ... @ManyToOne protected Address address ... contactInfo; ... } @Embeddable public class ContactInfo { @ManyToOne
JPA Doc
6

javax.persistence.MapKey

getEmpId() { ... } @ManyToOne @JoinColumn(name="dept_id") public Department ... { @Id public Integer getEmpId() { ... } ... @ManyToOne @JoinColumn(name
JPA Doc
6

javax.persistence.MapsId

javax.persistence Annotation MapsId Target: Fields (including property get methods) Designates a ManyToOne or OneToOne relationship attribute that provides the mapping for an EmbeddedId primary key ... ; ... @MapsId("empid") // maps the empid attribute of embedded id @ManyToOne
JPA Doc
6

javax.persistence.OneToMany

getOrders() { return orders; } In Order class: @ManyToOne @JoinColumn(name="CUST_ID ... orders; } // In Order class: @ManyToOne @JoinColumn(name="CUST_ID", nullable=false
JPA Doc
6

JoinColumn.name

ManyToOne mapping using a foreign key mapping strategy, the foreign key column is in the table ... is for a ManyToMany mapping or for a OneToOne or bidirectional ManyToOne/OneToMany mapping using a join table
JPA Doc
6

JoinColumn.table

of the applicable entity. Default: If the join is for a OneToOne or ManyToOne mapping using a foreign ... ManyToOne/OneToMany mapping using a join table, the name of the join table. If the join is for an element