About long

161-170 of 200Refresh
Forum
1

Query fails with numerical values > 2^31

". The field p.TimeOfDeletion is of type long. As far as I know, the maximum value greater than 2^31 (Oracle: "The long data type is a 64-bit two's complement integer.") In the database, typical ... to the long number (4147483648L) solves the error. Yeah, adding 'L' works great (both in code as
Forum
1

Remove an entity which attributes were changed - OptimisticLockException

();     }     @Entity     public static class MyEntity {         @Id @GeneratedValue long id ... = em.find(MyEntity.class, 1);         e.value++;         em.flush();         long removedID = e ...         @GeneratedValue         long id;         int value;     } }   Thanks. Build 2.8.0_01 should fix it. Thanks. The issue is solved with Build 2.8.0_01. btc_es
Forum
1

Saving custom list which implements java.util.List fails

, as long as they are declared as java.util.List So the same example runs with db4o and Hibernate ... of list, as long as it is an instance of java.util.List? Because it doesn't matter how the list is implemented as long as you can get and set the list-elements as defined in the List-interface
Forum
1

Selective merge/cascade of detatched entity

(); for (int i = 0; i < 10 ; i++) {   EntityManager em = emf.getEntityManager();   long time ... ); em.getTransaction().commit(); long time = System.currentTimeMillis(); em.getTransaction ... that only watches for future changes, that might go a long way to solving my issue. Thanks
Forum
1

Should I be able to persist a JFrame (or gui components in general)?

" interfaces like this, so that I am not spending a long time (I'm slow) programming what I'll call "mapping ... .swing.JFrame implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private long id; public NewJFrame() { initComponents
Issue
1

Threaded Test - Failed to commit transaction: Unexpected internal exception

generating a random UUID - I understand this will be slower than using a generated id or a long ... again. My final object will also have a CreateTime (long) and Priority (int) as I want to query for the oldest ... -8227-ea2d4c9dce3f - (38, 39) This degrades further for as long as I let it run. I've also deployed
Forum
1

Trouble viewing db in Explorer.

">                 [2012-06 ... ="true" fetchSize="0">                
Issue
1

Unexpected exception (Error 990) on find

, and there comes only Exceptions when the values becomes sometimes relativly long (> 256 chars). When I ... ? You mentioned long strings as map values, but in this context, long strings as entity keys
Forum
1

Problem with entities detection

{ private static final long serialVersionUID = 1L; @Id @GeneratedValue ... ") private Long idAlumno; @Column(name = "dni") private String dni; @Column(name = "nombre ... { /** * */ private static final long serialVersionUID = 1L; String ciudad
Forum
1

java 8 LocalDateTime is not working in query

();     }     @Entity     public static class MyEntity {         @Id         private Long id ... ;         protected MyEntity() {}         public Long getId() { return id; }         public void setId(Long id) { this.id = id; }         public LocalDateTime getCreated() { return created