ObjectDB ObjectDB

Internal Website Search

31-40 of 86 resultsRefresh
18

Optimistic locking: prevent version increment on entity collection attribute

I seem to have some issues. I have changed my classes to have a OneTomany mappedBy relationship as ... ;        @OneToMany(mappedBy="document")     private ArrayList<Reading> readings = new ArrayList ... { private static long ID_SEQ = 0; @Id private long id = ID_SEQ++; @OneToMany(mappedBy
18

Why are my Map entries not stored?

id;     @OneToMany(fetch = FetchType.EAGER, cascade=CascadeType.ALL, mappedBy = "ticket ... ) private Map states = new HashMap(); Is this correct now? "mappedBy" is not required? But I have to set "@MapKey"? Or is this optional? itsme Martin Petzold You have 2 options: Not using @MappedBy: In
16

Bidirectional OneToMany is slow on updated items

= {CascadeType.ALL}, fetch = FetchType.LAZY/*, mappedBy = "person"*/) private Set<Address> addressSet = new ... for the reply. This looks great. But without the mappedby, there are to independent relations ... to change the code. Instead set a property to force objectdb to handle all mappedby as ordinary
16

Detaching objects after JOIN FETCH

: 1. When not using mappedBy, like in example above, detached objects are visible even after closing em. 2. When using mappedBy in class B (this is the case in my code), detached objects from relation are not visible. I should add mappedBy in the example above, but I totally forget
16

Version 2.2.7 build 7/8 issue

Hi all, I have problems with builds 7 and 8 when trying to sort entities with mappedBy ... with null objects! With builds 6 and 5 works it correctly. Removing mappedBy from @OneToOne(mappedBy ... ; @OneToOne(mappedBy = "address") private Customer customer; public Customer
14

Error: Failed to write value of field X using reflection (oneToMany relation)

coche } @Entity public class Cliente extends Persona{ @OneToMany(mappedBy="Pedido ... case file is adjunct. elnll002 Facundo Curti You have to change the value of the mappedBy attribute: @OneToMany(mappedBy="cliente") i.e. specify the field name on the owner side without the class name. support Support
11

joining of tables

() { return address; } in Address class: @ManyToMany(mappedBy = "address") public Set ... also add a reference back from Address to Employee with a mappedBy setting. You can use
11

Problem persisting a TreeSet field

relationship: @ManyToOne private Message parent; @OneToMany(mappedBy = "parent") private TreeSet ... field instead of as an inverse field - remove he mappedBy setting, and update the TreeSet explicitly
11

Missing (null) elements in eager loaded references

extends BaseCostElement { @OneToMany(mappedBy = "parent", fetch = FetchType.EAGER) private List ... class DataElement extends BaseCostElement { @OneToMany(mappedBy = "parent", fetch = FetchType
2

NullPointer when accessing persistent field

.ALL, mappedBy="z_component") @MapKey(name="z_schemeName") private java.util.Map<java.lang.String ...     public static class A {         @OneToMany(targetEntity = B.class, mappedBy = "a")         private ... was being accessed. @OneToMany(cascade=CascadeType.ALL, mappedBy="z_aqera") @MapKey(name="z_registerId

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