ObjectDB ObjectDB

Internal Website Search

101-110 of 139 resultsRefresh

Performance in SELECT statement

Hello, I have the following 2 entities : @Entity public class TestEntity implements LocalEntity {     @Id     @GeneratedValue     private Long key;     private Long clientKey;     private String text1;     private String text2;     private String text3;     private String text4

Entity with java.util.Date column gives ClassCastException in BIRT

*/ @Entity public class Patient {     @Id     @GeneratedValue(strategy=GenerationType.IDENTITY

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

Extra uninitialised entities spawned on merge()

+ ")";         }         private Long id;         @Id         @GeneratedValue         public Long

@ElementCollection of type enum

@GeneratedValue Long id;                 @ElementCollection @Enumerated(EnumType.STRING

_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

How to pass a list in query for a list field of entity.

I have a entity as bellow :- @Entity @Table(name = "agent") public class Agent implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long Id; private List<SocialMedia> SocialMedias; public Agent() { } public Long

Cascading merge() leading to "Attempt to persist a reference to a non managed instance" error

{     @Id     @GeneratedValue     @SuppressWarnings("unused")     private int id;     @ManyToOne

NPE when doing a find()

I added a simple User entity during Tomcat startup: class User { @Id @GeneratedValue private long id; @Basic(optional = false) private String firstName; private String middleName; @Basic(optional = false) private String lastName; } Everything works fine until I restart the server, which does a em

boolean field flips after schema update (in class) of another field

Configuration { @Id @GeneratedValue private long id; @Embedded private Application application

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