ObjectDB ObjectDB

Internal Website Search

11-17 of 17 resultsRefresh
22

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

a Map, and uses a Compound Primary Key. The contained class therefore uses an @IdClass. This all works ... ; import javax.persistence.Id; import javax.persistence.IdClass; import javax.persistence.ManyToOne; import javax.persistence.Version; @Entity @IdClass(CompoundKeyMapItem.CompoundKeyMapItemId.class
18

EmbeddedId with Generated field value

I know the following 2 ways to declare a composite Primary key: ********* Solution 1 ********* @Entity @IdClass(CompositePK.class) public class A {     @Id private long uid;     @Id private ... only for entity objects (and not for embeddable classes). Consider using: @IdClass(ZoneId.class
12

Error opening database with ObjectDB Explorer when using composite key

@IdClass(PersonId.class) public class Person { public enum Gender {FEMALE, MALE}; @Id
12

em.flush(); em.clear(); loosing data and not persisting managed objects

with String Primary Keys, I'm going to try the other multi ID method of @IdClass and multiple @Id
12

ODB with Netbeans

a JPA restriction. "An entity or IdClass class should implement the java.io.Serializable interface
12

Object explorer cannot open odb file. ObjectDB many-to-many relationship

") @MapKey     private Map<Assignement.PK, Assignement> assignements; } @Entity @IdClass
2

ObjectDb Doctor : Failed to locate set method for field property com.test.Video$VideoId.sourceId using reflection (error 316)

") @IdClass(Video.VideoId.class) public class Video { protected String provider; protected

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