About properties

manual

JPA Entity Fields

Explains how to define and use primary keys in JPA, including composite and embedded primary keys.... the fields directly, but accessing fields indirectly as properties using get and set methods is also supported. To use property access ...

 
manual

JPA Persistence Unit

Explains how to define a JPA persistence unit in the persistence.xml file.... > sample.MyEntity2 </class > <properties > <property name = ... value = "admin" /> </properties > </persistence-unit >   ... below). The property elements specify general properties. JPA 2 defines standard properties for specifying database url, ...

 
forum_thread

Externalising persistence.xml properties in Glassfish?

Hi, ... from JPA itself and no formal standard for externalising properties (hence why they appear to be relying on JNDI lookups). I am ... </jta-data-source > <properties > <!--   TODO: I would like at ...

 
api-jpa

createEntityManagerFactory(persistenceUnitName, properties)

Create and return an EntityManagerFactory for the named persistence unit using the given properties.(Static Method of javax.persistence.Persistence)

 
manual

Shared (L2) Entity Cache

Explains how to set and use the EntityManagerFactory's shared cache (L2 / level 2) in JPA 2.... name = "my-pu" > ... <properties > <property name = ... value = "ALL" /> </properties > ... </persistence-unit > ... added to the shared cache. JPA provides two properties that can be used in order to change the default behavior. ...

 
api-jpa

find(entityClass, primaryKey, properties)

Find by primary key, using the specified properties.(Method of javax.persistence.EntityManager)

 
api-jpa

AccessType.PROPERTY

Property-based access is used.(Enum Constant of javax.persistence.AccessType)

 
forum_thread

$temp property not evaluated properly when used in log path

I have the following lines in my objectdb.conf file: <log path="$temp/ObjectDB/log/" max="8mb" stdout="false" stderr="false" /> <log-archive path="$temp/ObjectDB/log/archive/" retain="90" /> I don't believe that the $temp property is being evaluated properly here as it creates a new directory "$temp" in the same directory as my execution script. Shouldn't this be logging to the system temp directory? #1 2011-09-09 17:43 I have the following lines in my objectdb.conf file: <log path = "$temp/ObjectDB/log/" max ...

 
manual

Database Connection using JPA

Describes the main JPA interfaces: EntityManagerFactory, EntityManager and EntityTransaction.... createEntityManagerFactory(persistenceUnitName, properties) Persistence's static method Create and return an ... for the named persistence unit using the given properties. See JavaDoc Reference Page... method takes a map of persistence unit properties as a second parameter: Map<String, String> ...

 
forum_thread

how to query by properties of onetomany relations? (Error 990)

the following code fails em.createQuery("select f from Foo f where f.bars.name = ?1", Foo.class).setParameter(1, barName) stacktrace: #1 2011-05-10 21:39 the following code fails em. createQuery ( "select f from Foo f where f.bars.name = ?1" , Foo. ...