ObjectDB ObjectDB

Internal Website Search

21-30 of 144 resultsRefresh

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

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


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

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

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

@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

find() cost unreasonable time!

    @GeneratedValue(strategy=GenerationType.IDENTITY) private int id; @ManyToOne @JoinColumn(name ... .persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id ...     @GeneratedValue(strategy=GenerationType.IDENTITY) private int id; @ManyToOne @JoinColumn(name="parent

List of Enum Values in an entity

.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import org ...   serialVersionUID = 1L; @Id @GeneratedValue Long       id; private String     name; private Date ... static class MyEntity {         @Id @GeneratedValue Long id;                 ArrayList<MyEnum

New entity objects are duplicated on merge cascading

();     }         @Entity     public static class Book {         @Id         @GeneratedValue(strategy ... static class Chapter {         @Id         @GeneratedValue(strategy = GenerationType.AUTO ... A {         @Id @GeneratedValue long id;         @OneToOne(fetch = FetchType.LAZY, cascade

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