ObjectDB ObjectDB

Internal Website Search

71-80 of 139 resultsRefresh
8

failure to enforce NOT NULL for java.lang.String

: @Entity public class Request { public Request() { } @Id @GeneratedValue(strategy ... {         public Request() {         }         @Id @GeneratedValue(strategy=GenerationType
8

Attempt to execute a query using a closed EntityManager

. id is a long field in Client, so it should be there after Client is set. Id has @Id @GeneratedValue ... " field which is @Id @GeneratedValue(strategy = GenerationType.IDENTITY)? Shouldn't
8

Beginners questions

") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @OneToMany (fetch=FetchType.LAZY,cascade ... serialVersionUID = 1L; @Id @Column(name = "ID") @GeneratedValue(strategy = GenerationType.AUTO) private Long
8

@OneToOne query issue with OR and IS NULL

Hello, I'm struggeling to get a query run right. I have 2 entities (simplified) class A {     @Id     @GeneratedValue     private Long key;          @OneToOne(mappedBy = "other", cascade = CascadeType.ALL)         private B another } class B {     @Id     @GeneratedValue
8

Items in list are doubled, when the entity class is not enhanced

@GeneratedValue private Long id; @OneToMany(mappedBy = "customer",fetch= FetchType.EAGER ... final long serialVersionUID = 1L; @Id @GeneratedValue private Long id
8

Date field Index is corrupted due to time change

; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax ...         @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DateTime_sequence")         public Long getId
6

Listing large number of complicated objects with paging.

MyEntity {         @GeneratedValue @Id long id;         @Index int value;         byte[] data = new byte
6

Possible issue with String fields

implements Serializable { @Id @GeneratedValue private long id; String company_pkey
1

JPQL support for mapped by (inverse) collections

class A {         @Id @GeneratedValue long id;                 @OneToMany(mappedBy ... @GeneratedValue long id;                 @ManyToOne         A a;            } } The query in
1

Negative snapshot user count

();     }     @Entity     public static class MyEntity {         @GeneratedValue @Id long id;     } } Build 2.3.3_04 should fix this bug. support Support

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