ObjectDB ObjectDB

Internal Website Search

71-80 of 139 resultsRefresh

failure to enforce NOT NULL for java.lang.String

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

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

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

@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

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

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

Listing large number of complicated objects with paging.

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

Possible issue with String fields

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

JPQL support for mapped by (inverse) collections

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

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