ObjectDB ObjectDB

Internal Website Search

51-60 of 139 resultsRefresh

Double persist of Entity field with Cascade.ALL

follows: @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String ... > chapters; The Chapter fields are as follows: @Id @GeneratedValue(strategy = GenerationType.AUTO

Field in Generic Class not persisted?

; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence ... ; @Entity public class OBJ6 extends ABS<Long, OBJ6>{      @Id @GeneratedValue long id

@Unique member combination not working

Why does the below code not enforce unique restrictions? Person @Entity @Unique(members = {"name", "surname"}) public class Person implements Serializable {     @Id     @GeneratedValue ... Serializable {         @Id @GeneratedValue private Integer id;         private String name

Error 613 - i cant put a list<Athlete> into a Squad object

.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneToMany; @Entity ... {     /**      *      */     private static final long serialVersionUID = 1L;     @Id     @GeneratedValue     private long id

"Unsupported auto value type java.lang.String" when persisting new instance

for primary key: @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private String ID; kiki Kristijan You cannot use @GeneratedValue for string Id only for numeric Ids. Id fields whose type

Foreign key constraint issue

. The definitions of the classes I have are as follows: @Entity public class Child { @Id @GeneratedValue ... = parent;} } @Entity public class Parent { @Id @GeneratedValue private long id; @OneToMany(cascade

@MappedSuperclass and @Transient not working as I expected

.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import javax.persistence ... .persistence.Version; @MappedSuperclass public class DataObject { @Id @GeneratedValue

Unable to persist fields in subclass

; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javafx.beans.property ... SimpleAbstractPersonTest { /** * */ @Id @GeneratedValue private long id; private int medicalRecordNumber

List always null

I have the following classes: @Entity public class Noticia implements Serializable {     private static final long serialVersionUID = 1L;     @Id     @GeneratedValue(strategy ... static final long serialVersionUID = 1L;         @Id     @GeneratedValue(strategy = GenerationType

"is not null" queries not working with index

.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import javax.persistence ... ;         @Id @GeneratedValue private long id;         @Index private Integer bar;         public

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