ObjectDB ObjectDB

Internal Website Search

41-50 of 93 resultsRefresh
11

Adding multi part path index on non-embedable object member

{ @MapsId @ManyToOne(fetch = FetchType.LAZY) private Merchant merchant; @MapsId @ManyToOne(fetch = FetchType.LAZY) private List<Store> stores; // Setter/Getter
11

Extra uninitialised entities spawned on merge()

In the following, Element is a base entity class, with a bi-directional @ManyToOne-@OneToMany relationship Element owner - List<Element> ownedElements, and Example is a subclass entity ... ) {             this.id = id;         }         private Element owner;         @ManyToOne()         public
11

@JoinColumn(nullable=false)

? This is an code example: //bi-directional many-to-one association to AlarmGroup @ManyToOne @JoinColumn ... . But you can use the optional element of the @ManyToOne and @OneToOne annotations. Similarly, see this forum
11

Merge Issue: Attempt to reuse an existing primary key value

; import org.junit.Test; import java.util.*; import javax.persistence.ManyToOne; public ... = this;         }     }     @Entity     static class B {         @ManyToOne(fetch = FetchType.LAZY, cascade = { CascadeType
7

How to avoid NULL values on Embedded entities

; @ManyToOne private Cliente cliente; //Opcional @Basic(optional=false) private Date fechaYhora; //Fecha en
7

_PersistenceException: Type is not found on getSingleResult.

;     @ManyToOne     private Municipio lugarNacimiento;         @OneToMany(mappedBy = "estudiante
7

Problem persisting a TreeSet field

Hello, I am getting a "java.lang.IllegalArgumentException: Can not set java.util.TreeSet field Message.children to java.util.HashSet" when persisting a Message object with a parent/children relationship: @ManyToOne private Message parent; @OneToMany(mappedBy = "parent") private TreeSet
7

Memory use in OneToMany relationships

Hello everyone, I have a question regarding the OneToMany / ManyToOne Relationship in ObjectDB. So imaging following setup: We have class A which holds an collection (List, Arrray ...) of class B. In a more usual DB like MySQL with a seperate server we first query for the Entitys of class
7

Problem with distinct select, order by and equivalent alias/attribute path

= GenerationType.AUTO)     private Long id;         private String name;         @ManyToOne
2

New entity objects are duplicated on merge cascading

@GeneratedValue long id;         @ManyToOne(fetch= FetchType.LAZY)         A owner ... static class C {         @Id @GeneratedValue long id;         @ManyToOne(fetch= FetchType.LAZY

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