ObjectDB ObjectDB

Internal Website Search

21-30 of 139 resultsRefresh

Error 363 - Failed to read value of inverse relationship

I've got two objects: @Entity public class EEvent { @Id @GeneratedValue(strategy ... @GeneratedValue private Long id; private int permission = 0, activePermission = 0; private ... static final long serialVersionUID = 1L; @Id @GeneratedValue private Long id

Need help to make this test work and define proper annotations for entities Lists

; import javax.persistence.EntityManagerFactory; import javax.persistence.GeneratedValue; import ... class OrderDat implements Serializable {             @Id @GeneratedValue private long id ... {             @Id @GeneratedValue private long id;             public List<String> image


javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence ... { private static final long serialVersionUID = 1L; // @GeneratedValue @Id @Column(name = "id") @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @Column(name = "username") private

Join performance in Objectdb

    public static class A {         @Id @GeneratedValue long id;         B b;         long bId ... ", allocationSize=1000)     public static class B {         @Id @GeneratedValue(strategy=GenerationType ... ", allocationSize=1000)     public static class C {         @Id @GeneratedValue(strategy

Uninitialized primary key (id = 0)

with no @GeneratedValue and you do not initialize it manually. support Support Yes, at first, there is no @GeneratedValue, but it do not work after I add this command: @GeneratedValue(strategy=GenerationType.IDENTITY) Should I remove the whole db? TIA gzdillon Lai Yang Adding @GeneratedValue

EmbeddedId with Generated field value

annotation @GeneratedValue like the following: Solution 1) class A { @Id @GeneratedValue private long uid; ... } Solution 2) class CompositePK { @GeneratedValue private long uid; ... } Actually I ... ) @Entity public static class A {     @Id @GeneratedValue public long id;     @Id public String zone

@OneToMany(fetch = FetchType.LAZY) list is always null

Parent { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "b ... { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "b") private int id ... . Entities: @Entity public class Parent { @Id @GeneratedValue(strategy = GenerationType

Is it possible to remove parent/child entities without refresh?

.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; import javax.persistence ... ; public class ObjectDbRemoveTest { @Entity public static class ParentEntity {   @Id   @GeneratedValue ... {   @Id   @GeneratedValue   private long id;   @ManyToOne(fetch = FetchType.LAZY, cascade

How to use JOIN FETCH?

.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.MapKeyTemporal; import ... ); // Address is shown as null.   } } @Entity public static class Person {   @Id @GeneratedValue ... ;   } } @Entity public static class Address {   @Id @GeneratedValue private long id;   private String address

Merge with Parent/Child entities not possible

javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne ... public static class ParentEntity {   @Id   @GeneratedValue   private long id;   @OneToMany(fetch ... = id;   } } @Entity public static class ChildEntity {   @Id   @GeneratedValue   private

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