About property

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: ... > <properties > <property name = "javax.persistence.jdbc.url" value = "$objectdb/db/guests.odb" /> <property name = "javax.persistence.jdbc.user" value = "admin" /> <property name = "javax.persistence.jdbc.password" value = "admin" ...

 
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; ... int version ; @ Basic private Integer property ;   @ SuppressWarnings ( "unused" ) ... ( int startCnt ) { property = startCnt ; } public void setUUID ( ...

 
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! #1 2015-05-05 11:04 Hello, I have a class as follows: @ Entity public class MyEntity { ...

 
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.... with the EntityManager.merge() function. I set a property value of an entity (statement) with an other entity ... with the Explorer, the statement has a null value on the property and the newSingleValue is present. The entity manager don't ... statement when i update. The statement's property is typed by a class that is a superclass of the newSingleValue. ...

 
tutorial

Step 1: Create a Java Project

Explains how to create an Eclipse project with ObjectDB/JPA support. We start by creating a new Eclipse Project, using: File > New > Project... If you are using Eclipse IDE for Java EE Developers, you can see in the [New] menu a command for creating a [JPA Project]. We are not using that type of pro ...

 
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)... <properties > <property name = "javax.persistence.jdbc.url" value = "testing.tmp;drop" /> <property name = "javax.persistence.jdbc.user" value = "admin" ...

 
api-jpa

javax.persistence.PessimisticLockScope

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

 
api-jpa

javax.persistence.AttributeOverrides

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

 
api-jpa

javax.persistence.AssociationOverrides

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

 
api-jpa

createEntityManagerFactory(emName, map)

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