ObjectDB ObjectDB

Internal Website Search

111-120 of 139 resultsRefresh

Accessing objects to make them available after EntityManager close?!

; @Id @GeneratedValue Long id; @Unique private String word; private Set<String> meanings

query on calendar class

Hello! I'm looking for help to build query on calendar class. I need to get objects where Calendar.DAY_OF_WEEK is FRIDAY or any other. My class: @Entity public class Cdr {     private static final long serialVersionUID = 1L;        @Id @GeneratedValue     private long serialID;     private

Fields in objects not populated in query result.

{ /** * */ private static final long serialVersionUID = 1L; @GeneratedValue @Id protected long id

c.o.jpa.type.EntityTypeImpl.getIdType() returns null

final long serialVersionUID = 6677607256121084732L;     @Id     @GeneratedValue     private

LifeCycle Event with Embeddable classes

Hello, is there a way that lifecycle events like prepersist or preupdate are also fired for embeddable classes, not just for entities? My case looks as follows: @Entity public class Foo { @Id @GeneratedValue private Long id; private String description; @OneToMany(cascade

How to delete M2M relationship?

In user model class I have the following: public class User implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToMany(mappedBy = "attendees", cascade = CascadeType.ALL)     @Cascade(org.hibernate.annotations.CascadeType

java.sql.Time field off by 30 minutes

{         @Id @GeneratedValue(strategy = GenerationType.AUTO)         private long id;         String

Null returned by Persistence.createEntityManagerFactory

the getters and setters): @Entity public class Task implements Serializable { @Id @GeneratedValue

Failed to commit transaction: Attempt to reuse an existing primary key value (613)

be the same theoricaly i think cause in both cases the @Id in the database is @GeneratedValue

Unexpected exception (Error 990) - Merge with no Transaction

A {         @Id         @GeneratedValue         Long id;         String value;              A(String value

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