ObjectDB ObjectDB

Internal Website Search

1-10 of 86 resultsRefresh
80

OneToMany.mappedBy

Annotation Element javax.persistence.OneToMany String mappedBy The field that owns the relationship. Required unless the relationship is unidirectional. Default value: "" Since: JPA 1.0
80

ManyToMany.mappedBy

Annotation Element javax.persistence.ManyToMany String mappedBy The field that owns the relationship. Required unless the relationship is unidirectional. Default value: "" Since: JPA 1.0
80

OneToOne.mappedBy

Annotation Element javax.persistence.OneToOne String mappedBy (Optional) The field that owns the relationship. This element is only specified on the inverse (non-owning) side of the association. Default value: "" Since: JPA 1.0
39

JPA Entity Fields

; } @Entity public class Department { @OneToMany(mappedBy="department") Set<Employee> employees; } The mappedBy element (above) specifies that the employees field is an inverse field ... the Department entity): SELECT e FROM Employee e WHERE e.department = :d The mappedBy element defines
28

new objects not available in mappedBy associations

Given a mappedBy association: e.g: @OneToMany(mappedBy="department") public List <Employee ... object" ? How does one refresh an object? If the mappedby tag maps to: SELECT e from EMPLOYEE e ... > If the mappedby tag maps to: > SELECT e from EMPLOYEE e WHERE e.department=department > then shouldn't
8

Element.mappedBy

Annotation Element javax.jdo.annotations.Element String mappedBy Name of the member in the target class that forms a bidirectional relationship with this member. Returns: name of the member in the target class that forms a bidirectional relationship with this member Default value: "" Since: JDO 2.1
8

Key.mappedBy

Annotation Element javax.jdo.annotations.Key String mappedBy Name of a member in the value class where this key is stored. Returns: the name of a member in the value class where this key is stored Default value: "" Since: JDO 2.1
8

Order.mappedBy

Annotation Element javax.jdo.annotations.Order String mappedBy Name of a field or property in the target class that acts as the ordering field or property for this member. Return the name of the field or property in the target class Default value: "" Since: JDO 2.1
8

Value.mappedBy

Annotation Element javax.jdo.annotations.Value String mappedBy Name of a member in the key class where this value is stored. Returns: the name of a member in the key class where this value is stored Default value: "" Since: JDO 2.1
8

Persistent.mappedBy

Annotation Element javax.jdo.annotations.Persistent String mappedBy Name of the related member in the other class where this value is mapped (bidirectional relationship). Returns: the related member in the other class Default value: "" Since: JDO 2.1

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support