Home » Search

About long

111-120 of 200Refresh
Forum
1

Performance in large transactions

.setFlushMode(FlushModeType.AUTO);   em.getTransaction().begin();   // SLOW   long startTime ... ();   // SLOW   long startTime = System.currentTimeMillis();   MyEntity myEntity = new MyEntity ... persistence context after first persistence for a long time. We will try to demonstrate these ideas in
Forum
1

Performance in SELECT statement

{     @Id     @GeneratedValue     private Long key;     private Long clientKey;     private ...     private long timestamp;     @Embedded     private State state;     ... getter/setters ... } @Embeddable public class State {     private Long lastProcessingDate;     private int
Forum
1

Performance problem

(); long startTime; long endTime; startTime = System.currentTimeMillis ... = emf.createEntityManager(); long startTime; long endTime; startTime ... is PartolniNalogImpl instance. So apparently loading of that PartolniNalogImpl instance takes too long. Please check
Forum
1

Problem with distinct select, order by and equivalent alias/attribute path

(strategy = GenerationType.AUTO)     private Long id;         private String name;         @ManyToOne     private Location location;     public Street() {     }     public Street(Long id, String ... = location;     }     public Long getId() {         return id;     }     public void setId
Forum
1

Speed of queries that return many objects

class BenchEnt implements Serializable {     private static final long serialVersionUID = 1L ... ();             em.clear();         }         if( true){             long t1 = System.currentTimeMillis ... );             List L = query.getResultList();             long t2
Issue
1

Best practise loading big data

so there they are still referenced by weak refernces. GC can collect them but within this long transaction ... public long Id = 1; @OneToMany (cascade = CascadeType.ALL, targetEntity = MyStepBlock ... .getTransaction().commit(); sbc = null; long counter = 0; em.getTransaction().begin(); sbc = em.find
Forum
1

Beginners questions

extends Pojo implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name = "ID") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @OneToMany (fetch ... static final long serialVersionUID = 1L; @Id @Column(name = "ID") @GeneratedValue(strategy
Forum
1

com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV

{     private Long id;     private Long version;     :       private String mapFromCli ... class RecordingMetaData {     private Long id;     private Long version;         private Date
Forum
1

createQuery method error

isJobExist(String name) { TypedQuery<Long> query = em.createQuery( "SELECT count(j) FROM MFJob j WHERE j.jobName = :name", Long.class); return query.setParameter("name", name ... .EntityManager cannot be applied to (java.lang.String,java.lang.ClassLong>) [javac
Forum
1

Does ObjectDB support lazy loading?

.getTransaction().commit(); Long id = a.id; em.close(); em = emf ... @GeneratedValue Long id; @OneToMany(fetch=FetchType.LAZY, cascade=CascadeType.ALL) List list; } @Entity static class B { @Id @GeneratedValue public Long id; int