About properties

forum_thread

Query by array element

Hello, I have a class as follows: @Entity public class MyEntity {     boolean properties[]= new boolean[1024]; } I would like to query objects with feature '42': select me from MyEntity me where me.properties[42]=true Is it possible? Thank you! ... public class MyEntity { boolean properties [ ] = new boolean [ 1024 ] ... SELECT me FROM MyEntity me WHERE me . properties [ 42 ] = true Is it possible? ...

 
forum_thread

Problem on JPA Merge Entity.

Hello, I have a problem with the EntityManager.merge() function. I set a property value of an entity (statement) with an other entity (newSingleConstraint). newSingleValue is already persisted. I do this myself (no use of cascade because sometimes the newSingleValue is already in database).   The statement update don't throw exception. And when i try to reload statement the value i have set before is a null value. I check with the Explorer, the statement has a null value on the property and the newSingleValue is present. #1 2011-02-03 16:57 Hello, I have a problem with the EntityManager.merge() function. I set a property value of an ent ...

 
tutorial

Step 1: Create a Java Project

Explains how to create an Eclipse project with ObjectDB/JPA support.... file, using: Right Clicking on the Project > Properties > Libraries > Add External JARs... The next step is ...

 
api-jpa

javax.persistence.PessimisticLockScope

Defines the values of the javax.persistence.lock.scope property for pessimistic locking.(Enum of JPA)

 
forum_thread

Exception while accessing the Persistence unit ...?

Hi, I am new to ObjectDB I was trying your eclipse/jee6/glassfish tutorial. I am getting the following exception: ... </provider > <properties > <property name = ... value = "admin" /> </properties > </persistence-unit >   ...

 
api-jpa

javax.persistence.AttributeOverrides

Used to override mappings of multiple properties or fields.(Annotation of JPA)

 
forum_thread

Failed to validate XML

[ObjectDB 2.6.7_05] javax.persistence.PersistenceException Failed to validate xml file /{erased-by-me}/tiro/lib-core/build/resources/test/META-INF/persistence.xml: (error 211) at com.objectdb.jpa.Provider.createEntityManagerFactory(Provider.java:88) at com.objectdb.jpa.Provider.createEntityManagerFactory(Provider.java:32) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)... com.tiro.entities.Role </class > <properties > <property name = ... value = "admin" /> </properties > </persistence-unit > </persistence ...

 
api-jpa

javax.persistence.AssociationOverrides

Used to override mappings of multiple relationship properties or fields.(Annotation of JPA)

 
forum_thread

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

I have two classes a Container type class and another class that is 'contained' by that class. The contained class, CompoundKeyMapItem, represents an alternate implementation of an object held in a Map, and uses a Compound Primary Key. The contained class therefore uses an @IdClass. This all works fine on Eclipselink. However when I try and run this in ObjectDb I get the following error; #1 2011-09-23 10:36 I have two classes a Container type class and another class that is 'contained' by that class. The co ...

 
api-jpa

createEntityManagerFactory(emName, map)

Called by Persistence class when an EntityManagerFactory is to be created.(Method of javax.persistence.spi.PersistenceProvider)