About long

manual

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps.... boolean , byte , short , char , int , long , float and double . Equivalent wrapper classes from ... , Byte , Short , Character , Integer , Long , Float and Double . java.math.BigInteger , ...

 
manual

Database Schema Evolution

Explains how ObjectDB handles automatically schema changes.... types are: byte , short , char , int , long , float , double , Byte , Short , Character , Integer , Long , Float , Double , BigInteger , BigDecimal and enum values ...

 
api-jdo

setRange(fromIncl, toExcl)

Set the range of results to return.(Method of javax.jdo.Query)

 
forum_thread

Join performance in Objectdb

select count(e) from Meta e, ImageNet i, Page p where e.idImage=i.id and e.idPage=p.id; So simple a command cause me half an hour and is running now! Each table has about 160K records. What formula can predict the time for such counting? TIA ... population completed." ) ;   long ms, result, elapsedTime ;   System. out . println ... ( ) ; TypedQuery<Long> q1 = em. createQuery ( "SELECT COUNT(a) ...

 
forum_thread

Visibility of changes in Transaction is not visible to a JPA QL Query

I have two simple Entities ( see attachment ) and a simple SLSB with container managed transactions which is called by a trivial servlet. Inside a UserTransaction I add a number of items then check to see that they have been added ... items then check to see that they have been added long newTotal = - 1 ; try { InitialContext ... . lookup ( "SLSBObjDb" ) ; long oldAmount = bean. countItems ( ) ; bean. ...

 
issue

When using inheritance, you can specify, which ID to use

When storing objects with inheritance, it should be possible to choose, which ID (parent or child class) should be used for new object. For example: public EntityA() {     @Id     long id;     String field1; }   ... ( ) { @ Id long id ; String field1 ; }   ... ( ) { @ Id long id ; String field2 ; } In this case and ...

 
forum_thread

Failing to read entities under load in multithreaded tests

Hi, We are experiencing an issue in our application that only occurs under load - we sometimes fail to read entities from the database. ... { private static final long serialVersionUID = 1L ;   private long version ;   private long longId ;   @ ...

 
forum_thread

Can a Set<E> be a foreign key?

I have two classes, Cell and Character.  Basically, the cell is like a room, and contains a variable (private Set<Long> cellHeldCharacters;) which holds the IDs of the characters within the cell (The IDs are Primary Keys).  Can I use the Foreign Key annotation for the variable, or is it illegal/unrecommended to do it for a Set? For a better picture, I have: ... is like a room, and contains a variable (private Set<Long> cellHeldCharacters;) which holds the IDs of the characters within the ... Id @ GeneratedValue private long characterId ; private String characterName ; private ...

 
forum_thread

Version 2.2.7 build 7/8 issue

Hi all, I have problems with builds 7 and 8 when trying to sort entities with mappedBy and my own method in query. This query "SELECT c FROM Customer c order by c.getNormalizedName()" returns List with null objects! With builds 6 and 5 works it correctly. Removing mappedBy from @OneToOne(mappedBy = "address") also helps. My code: ... {   private static final long serialVersionUID = 1L ;   @ Id @ GeneratedValue private Long id ;   @ Basic ( optional = false ...

 
forum_thread

Join query problem with new statetment

Hi, I'm trying to implement some reporting logic in my application and got nasty exception when using query with join. The query code is: ... { private static final long serialVersionUID = 1L ;   private long inspID ; private String inspName ; private long ...