ObjectDB ObjectDB

Internal Website Search

11-20 of 86 resultsRefresh
137

LEFT (OUTER) JOIN problem when mappedBy is defined

invoices without items! Only invoices with items. When I remove mappedBy from @OneToMany annotation, LEFT ... (); } } @Entity public class Invoice { @OneToMany(mappedBy = "invoice", fetch= FetchType.EAGER
137

mappedBy problem

If I put the mappedBy element to the @OneToMany, the owned side (the many side) will never persist ! for example @Entity public class Employee { @Id @GeneratedValue(strategy = GenerationType ... ,mappedBy="employee") public List<Address> addresses; } @Entity public class Address
34

EntityManager.refresh takes a long time

refresh: @OneToMany(mappedBy = "person", cascade = CascadeType.ALL) private List<OpenIdAuth> openIdAuths = new ArrayList<>(); @OneToMany(mappedBy = "person", cascade = CascadeType ... <>(); @ManyToMany(mappedBy = "selectedPersons", cascade = CascadeType.REFRESH) @NotNull private
12

javax.persistence.ManyToMany

side. If the relationship is bidirectional, the non-owning side must use the mappedBy element of the ManyToMany ... is the owner of the relationship, the non-owning side must use the mappedBy element of the ManyToMany ... (".") notation syntax must be used in the mappedBy element to indicate the relationship attribute
11

javax.persistence.OneToOne

. If the relationship is bidirectional, the non-owning side must use the mappedBy element of the OneToOne annotation ... is on the owning side of the relationship, the non-owning side must use the mappedBy element of the OneToOne ... syntax must be used in the mappedBy element to indicate the relationship attribute
10

javax.persistence.OneToMany

; otherwise the target entity class must be specified. If the relationship is bidirectional, the mappedBy element ... , the mappedBy element must be used to specify the relationship field or property of the entity ... // In Customer class: @OneToMany(cascade=ALL, mappedBy="customer") public Set
9

javax.persistence.ManyToOne

side must used the mappedBy element to specify the relationship field or property of the entity ... is bidirectional, the non-owning OneToMany entity side must use the mappedBy element of the OneToMany ... side of the relationship. The dot (".") notation syntax must be used in the mappedBy element
6

javax.persistence.MapKey

. Example 1: @Entity public class Department { ... @OneToMany(mappedBy ... { ... @OneToMany(mappedBy="department") @MapKey(name="name") public Map
0

javax.jdo.annotations.Order

value: {} Since: JDO 2.1 String mappedBy Name of a field or property in the target class that acts
0

javax.jdo.annotations.Element

) should be indexed. Default value: "" Since: JDO 2.1 String mappedBy Name of the member in the target class

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