About int

release

2.5.4

... Added support for casting from boolean to int in queries. Changed default value of ...

 
forum_thread

Wrong @Id type

Hi,  I have noticed some values of id column suddenly switched to int, although it is declared as long in our java class. Do you have idea why this happened? Screenshot attached.   ... have noticed some values of id column suddenly switched to int, although it is declared as long in our java class. Do you have ...

 
forum_thread

Calculating age in query?

Hi! I've got an issue: I have a birthdate as java.sql.Date and a separate field int age. However, of course the age is not accurate because it gets set only once. So what's the best bet (JPA Standard way) to solve the issue of accessing and filtering by an age (having a birthdate) in a query? thanks! Alex ... I have a birthdate as java.sql.Date and a separate field int age. However, of course the age is not accurate because it gets set only ...

 
forum_thread

How to delete M2M relationship?

In user model class I have the following: public class User implements Serializable { ... ) { for ( int i = 0 ; i<attendeeList. size ( ) ; i ++ ...

 
doc

java.security.Permission

(Class of java.securityClass Permission)

 
forum_thread

java.lang.ClassCastException in query results

I have a simple object stored in a ObjectDb file Stadium Name (java.lang.String) Capacity (int) City (java.lang.String)   When i run the following code i get the ClassCastException in the "for (Stadium result : results)" line ... Name (java.lang.String) Capacity (int) City (java.lang.String)   When i run the ...

 
forum_thread

Update Entity references if we change the type of an entity

Hello, we must change (extend) our entity model and therefor we convert the type of some entities. As example (like in the attached example): We have an EntityA that have a reference to an EntityB. ... entities have just a ID based reference with a simple 'int' field to this element. And we thought that also the real references ...

 
api-jdo

copyKeyFieldsToObjectId(pcClass, fm, oid)

Copy fields from an outside source to the key fields in the ObjectId.(Method of javax.jdo.spi.JDOImplHelper)

 
api-jdo

jdoCopyKeyFieldsFromObjectId(fm, oid)

Copy fields to an outside consumer from the key fields in the ObjectId.(Method of javax.jdo.spi.PersistenceCapable)

 
forum_thread

Object explorer cannot open odb file. ObjectDB many-to-many relationship

I created a data model to test many-to-many relationship with a link table as following (full code in attachement) ... ( ) ) ;   int countProjectsAssignedToU1 = u1. getAssignements ( ) . ...