About long

191-200 of 200Refresh
Forum
1

Java 6/7 Performance Comparison

may have missed while running under java 7. long start = System.currentTimeMillis ... "); EntityManager em = emf.createEntityManager(); long end = System.currentTimeMillis(); System.out.printf
Forum
1

java.sql.Time field off by 30 minutes

= GenerationType.AUTO)         private long id;         String myname = "Roger";         java.sql.Time mytime ... (mytime1);         long time = mytime1.getTime();         System.out.println(time);         time
Issue
1

JDO PersistenceManager.getSequence() returns null sometimes

(); Sequence seq2 = pm.getSequence("seq"); long next = seq2.nextValue ... " factory-class="java.lang.Long" strategy="contiguous" /> An additional minor
Issue
1

JPQL support for mapped by (inverse) collections

class A {         @Id @GeneratedValue long id;                 @OneToMany(mappedBy ... @GeneratedValue long id;                 @ManyToOne         A a;            } } The query in
Forum
1

LAZY @ManyToOne field functions as EAGER

();         Long id = b.id;         em.close();         em = emf.createEntityManager();         b ... A {                 @Id         @GeneratedValue         Long id;         String name
Forum
1

Maintaining referential integrity

Hi everyone! I'm facing challenges using Objectdb with pure JPA annotations. Please see the code below: @Entity public class Employee { @Id private long id; private Company company; ... } @Entity public class Company { @Id private long id; ... } When I try
Forum
1

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

"));         em.persist(a);         em.getTransaction().commit();         Long id = a.id;         em.close ...     static public class A {         @Id         @GeneratedValue         Long id;         String
Forum
1

multiple LEFT JOINs do not work as expected

@Id private long id;         Node parent;         int depth;                 Node ... { @GeneratedValue @Id private long id; Node parent; int depth; String nodeId
Forum
1

Mysterious "Attempt to persist a reference to a non managed instance" error

.persistence.Id; @Entity public class Ostrich implements Serializable {     @Id long id;     public ... implements Serializable {     @Id @GeneratedValue private long id;     @OneToOne(fetch=EAGER, cascade
Issue
1

Negative snapshot user count

];         for (int i = 0; i < COUNT; i++) {             final long id = i + 1;             threads[i ... ();     }     @Entity     public static class MyEntity {         @GeneratedValue @Id long id;     } } Build 2.3.3_04 should fix this bug. felixobjectdb