Home » Search

About Id

191-200 of 200Refresh
Issue
2

Blocked by find

I have a container object which wraps an objectdb database. There is a "putIfAbsent(String id, Object obj)" method which is synchronized and attempts to load an object by id using the EntityManager ... but the entity object is simple and looks like: @Entity public class DataHolder { @Id private
Forum
2

Date field Index is corrupted due to time change

; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence ... ", "mapToCli", "mapFromCli"}),     })     public static class DateTime {         private Long id ... ;             }             if (id == null) {                 return false;             }             DateTime
Forum
2

Does ObjectDB support lazy loading?

. However, when the Parent object is read from EntityManager, all the properties except ID of the Child objects are null ... .getTransaction().commit(); Long id = a.id; em.close(); em = emf.createEntityManager(); a = em.find(A.class, id); System.out.println(a.list); em
Forum
2

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

*/ @Entity public class Patient {     @Id     @GeneratedValue(strategy=GenerationType.IDENTITY)     private long id;     private String name;     private boolean privacy;     @Column(name ...     }     /**      * Returns the id of this {@link Patient}      * @return the id      */     public long getId
Forum
2

persisting object with long[][] arrays of array

.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax ... static final long serialVersionUID = 1L;     public @Id String id;     @OneToMany(fetch ... long[][] b2;     public TESTObject(String ids, long[] time, long[][] a1, long[][] a2, long[][] b1
Forum
2

Trouble bug on explorer

", initialValue=10000) @Entity public class User implements Serializable { @Id @GeneratedValue ... id; private String userName; private String pwd; private String ircim ... ) { this.gid = gid; } public final int getId() { return id
Forum
2

Wrong data stored in time only fields

javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence ... ",         allocationSize=1     )     public static class DateTime {         private Long id ... ;             }             if (id == null) {                 return false;             }             DateTime
Forum
2

EmbeddedId with Generated field value

********* @Entity @IdClass(CompositePK.class) public class A {     @Id private long uid;     @Id private ... annotation @GeneratedValue like the following: Solution 1) class A { @Id @GeneratedValue private long ... simply a not contemplated future? Automatic generated IDs is currently supported only for entity
Forum
2

Database(*.odb) file size on disk

; import javax.persistence.Id; import javax.persistence.OneToOne; import javax.persistence ... " + i + "longStirnglongStirnglongStirng of entity: " + entity.id;     em.persist(entity);     entityAIds.add(entity.id);     em.getTransaction().commit();    }    System.out.println("references
Forum
2

Eager Fetch is not stable for collection or map types?

(long id) {    EntityManager em = emf.createEntityManager();    try {     TypedQuery query = em.createQuery("select k from Game k where k.id=:id", Game.class);     List result = query.setParameter("id", id).getResultList();     if(result.size() > 0) {       Game g = result.get(0