ObjectDB ObjectDB

Internal Website Search

101-110 of 139 resultsRefresh
6

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
6

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

*/ @Entity public class Patient {     @Id     @GeneratedValue(strategy=GenerationType.IDENTITY
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

Extra uninitialised entities spawned on merge()

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

@ElementCollection of type enum

@GeneratedValue Long id;                 @ElementCollection @Enumerated(EnumType.STRING
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

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
6

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

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

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
1

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