About field

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 ... 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 ...

 
manual

WHERE clause (JPQL / Criteria API)

Explains how to use the WHERE clause in a JPQL query.... query, if an index is defined on the population field ObjectDB can use that index to iterate directly on Country objects ...

 
forum_thread

Using of ConcurrentHashMap as attribute

Hello, it is possible to use an entity attribute of type java.util.concurrent.ConcurrentHashMap Your web site http://www.objectdb.com/object/db/database/features 'Object Model & Data Types' has no guidelines about this data type. Best regards ... You can persist a Map field holding a  ConcurrentHashMap instance but it will be loaded as ...

 
api-jdo

Embedded.members

Members for this embedding.(Annotation Element of javax.jdo.annotations.Embedded)

 
api-jpa

OneToOne.targetEntity

(Optional) The entity class that is the target of the association.(Annotation Element of javax.persistence.OneToOne)

 
api-jdo

Persistent.valueStrategy

Value strategy to use to generate the value for this field or property (if any).(Annotation Element of javax.jdo.annotations.Persistent)

 
forum_thread

NontransactionalWrite error using Collections.sort .

Hi, i started to use ObjectDB today and i'm having problem using command Collections.sort in persisted object.  Attempt to modify an object with no active transaction when NontransactionalWrite is disabled: br.ufpa.linc.MetriX.api.model.Interface#105 (error 635)   I don't want to modifi de object in DB, just sort it to show at the moment. someone can help me ?   thanks David Bentolila   ... find that your compareTo method changes a persistent field in some entity. If you sure that your entity is not modified - ...

 
api-jpa

javax.persistence.PersistenceContext

Expresses a dependency on a container-managed EntityManager and its associated persistence context.(Annotation of JPA)

 
api-jpa

javax.persistence.PrimaryKeyJoinColumn

Specifies a primary key column that is used as a foreign key to join to another table.(Annotation of JPA)

 
forum_thread

Query results are not up to date for entities, not primitives

When using the CriteriaBuilder to query, the retrieved list are not refreshed according to the latest updates. But, when using the JPQL Query, the list are refreshed. What is the problem? #1 2014-09-27 17:42 When using the CriteriaBuilder to query, the loaded list are not refreshed according to the latest updates. B ...