ObjectDB ObjectDB

Internal Website Search

81-90 of 144 resultsRefresh
9

Mysterious "Attempt to persist a reference to a non managed instance" error

.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import ... Serializable {     @Id @GeneratedValue private long id;     @OneToOne(fetch=EAGER, cascade
6

How to avoid NULL values on Embedded entities

Hi there. I'm new on this. trying to learn. I'm trying to make a value non nulleable. So, when I try to upload to the DB this field as null, it give me an error. I tried this, but it didn't work: public class Pedido { @Id @GeneratedValue private long id; @Embedded private Direccion origen
6

_PersistenceException: Type is not found on getSingleResult.

Greetings. I'm new to ObjectDB. I'm using an ObjectDB local database for a Java SE standalone application and i'm having issues querying for an object of this entity: @Entity public class Estudiante{     @Id     @GeneratedValue     private Integer id;         @Column     private String
6

Performance issues on aggregate query

final long serialVersionUID = 1L; @Id @GeneratedValue public long id; @Index public Double
6

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
6

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
6

Immediately retrieve unique id

; @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sampleSeqGenerator") @Id long id; The id
6

problem with lazy loading - unittest project attached

GeneratedValue's strategy (in ObjectDB the SEQUENCE and TABLE strategies generate automatic values as
6

Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance

: @Id     @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="user_pwd_seq
6

Mismatch client-server protocol prefix

explicitly set and the field is annotated with: @Id @GeneratedValue public Long getId() { return Id

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