Fast Object Database for Java - with JPA/JDO support

Internal Website Search

191-200 of 200 resultsRefresh
2

Error 363 - Failed to read value of inverse relationship

I've got two objects: @Entity public class EEvent { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @ManyToOne(optional=false) private ETown town ... town) { this.town = town; } } And: @Entity public class ETown { @Id
2

Internal exception when updating date filed (TemporalType.DATE)

() {             try {                 Query countQuery = entityManager.createQuery("select count(p.id) from ... ;         // -------------------- persistent fields ----------------------------------         @Id         private String id = UUID.randomUUID().toString();         @Temporal(javax.persistence.TemporalType
2

em.flush(); em.clear(); loosing data and not persisting managed objects

.persistence.Basic; import javax.persistence.Entity; import javax.persistence.Id; import javax ... = "mySchema") public class TestEntity {     @Id     private int id;     @Basic     @Lob     private String remark;     public int getId()     {     return id;     }     public void
2

Is it possible to remove parent/child entities without refresh?

.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; import javax.persistence ... ; public class ObjectDbRemoveTest { @Entity public static class ParentEntity {   @Id   @GeneratedValue   private long id;   @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy
2

Merge with Parent/Child entities not possible

javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne ... public static class ParentEntity {   @Id   @GeneratedValue   private long id;   @OneToMany(fetch ... );   }   public long getId() {    return id;   }   public void setId(long id) {    this.id
2

TemporalType injection with Calendar using JPA

implements Serializable { private TimePeriod id; private List points; public ... getId() { return id; } public void setId(TimePeriod id) { this.id = id ... ,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Europe/London
2

EntityManager JPA or JDO impl and different behavior

. However if I use em.find(SomeObject.class, id) the map is NOT populated. I created a simple test ... would too, but may have been wrong. That still doesn't change the fact that in my project the em.find(type, id ... it populates the map in both. Because my project uses Spring to create the entity manager: id
2

java.sql.Time field off by 30 minutes

{         @Id @GeneratedValue(strategy = GenerationType.AUTO)         private long id;         String ... {" + "id=" + id + ", myname=" + myname +                 ", mytime=" + mytime + ", mytimestamp ... : MyEntity{id=1, myname=Roger, mytime=21:33:15, mytimestamp=2012-03-07 21:33:15.291} MyEntity{id=1
2

Update Entity references if we change the type of an entity

how we detect the existing EntityB instances they must be converted to the new Entity. With the same ID, because it's possible that many other entities have just a ID based reference with a simple 'int' field to this element. And we thought that also the real references are based on the ID. This step
2

Listing large number of complicated objects with paging.

with such a simple query: select prod from Product prod order by prod.id ASC Right now I have 55541 ... .createQuery("select prod from Product prod order by prod.id ASC", Product.class); prodList = icQuery ... Product prod order by prod.id ASC] 2011-11-15 19:30:59.578 [http-bio-8080-exec-3] DEBUG pl.hplxtool.dao

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