ObjectDB ObjectDB

Internal Website Search

181-190 of 200 resultsRefresh

Queries are slow on a large database

implements Message, LogItem, Comparable { private int Id; private int logTestRunId ... == " + logTestRun.getId()); query.setOrdering("this.Id ascending"); The package.jdo contains for this class ... ="Id"/> <extension vendor-name="objectdb" key="index" value="logTestRunId

NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1

IAbstractObject { //private static final long serialVersionUID = 1L; @Id private String id = UUID.randomUUID().toString(); public String getId() { return id; } public void setId(String id) { this.id = id; } @Override public int hashCode

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

the debugger is i can see this member m_idType is null type EntityTypeImpl<X> (id=57) m_attrMap LinkedHashMap<K,V> (id=74) m_declAttrMap LinkedHashMap<K,V> (id=78) m_entityName "Foo" (id=80) m_errorManager JPE (id=83) m_idClassAttr Collections$EmptySet (id=87) m_idSingleAttr SingularAttributeImpl<X,T

openejb jpa jaas module

(); final int id = info.getId(); final TypedQuery<UserPrincipal> namedQuery = entityManager ... ; @GeneratedValue(strategy = GenerationType.SEQUENCE , generator = "gen") @Id private int ... = "UserInfo.getByClientId" , query = "select ui from UserInfo ui where ui.id = :id

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

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

Embedded Entity in EmbeddedId not persisted. Error 631 at select.

.persistence.Id; /**  * @author Stanislav Jakuschev 27.02.2023  *   *         case 1: Works not ... static class A {         @EmbeddedId         private AId id;         public A() {         }         public A(AId id) {             this.id = id;         }         @Override

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

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

Tracking changes to new collections (in enhancement mode) after flush

MappingImpl implements Mapping { //the UID of the Mapping @Id @Access (AccessType ... ();         em.flush();         long id = entity.id;         entity.addValue();         em.getTransaction().commit();         em.clear();                  entity = em.find(ListInMap.class, 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