About properties

forum_thread

Spring 2.5 LocalContainerEntityManagerFactoryBean, no getSharedCacheMode()

I'm trying to setup Spring + JPA + ObjectDb in my test environment and having trouble with the following: <bean id="EnvDMSEntityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="persistenceUnitName" value="envService"/> <property name="persistenceXmlLocation" value="com/awarepoint/persistence.xml"/> </bean> Here is the stack trace I get: #1 2013-08-07 00:05 I'm trying to setup Spring + JPA + ObjectDb in my test environment and having trouble with the following: ...

 
api-jpa

javax.persistence.MapKeyJoinColumn

Specifies a mapping to an entity that is a map key.(Annotation of JPA)

 
forum_thread

Setting temp directory location in ObjectDB

HI, I am using ObjectDB and would to change the temp directory location wihtout using objectDB.conf file. I am using JDO and setting the persistenceManager as follow properties.setProperty("javax.jdo.PersistenceManagerFactoryClass","com.objectdb.jdo.PMF"); properties.setProperty("javax.jdo.option.ConnectionURL", fileName.odb); pmf = JDOHelper.getPersistenceManagerFactory(properties), JDOHelper.class.getClassLoader()); #1 2011-08-02 15:49 HI, I am using ObjectDB and would to change the temp directory location wihtout using objectDB.conf fil ...

 
forum_thread

Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between values in updated entity. There is a problem however with accessing "old" version of object stored in database. I can't find the nice way to use EntityManager in EntityListener. Because of that, I can't store separate entity for given event. Right now I'm using BaseEntity which contains #1 2011-07-20 12:49 Hi, Currently I'm playing with entity listener to implement auditing with difference between values i ...

 
forum_thread

Does ObjectDB support @Parent for @Embeddable reference to parent?

AFAIK JPA does not directly support an @Embeddable referencing the parent in which it is @Embedded. But Hibernate has a special @Parent for it (see Entity extensions 2.4.3.4.@Parent). @Entity public class Person { @Embeddable public Address address; ... } @Embeddable public class Address { @Parent public Person owner; ... } Is there a safe and recommended way of achieving this in ObjectDB ? ... } }   // .. other properties .. } Visit ...

 
manual

GROUP BY and HAVING clauses

Explains how to use the GROUP BY and HAVING clauses in a JPA/JPQL query.... query results. A JPQL query with a GROUP BY clause returns properties of generated groups instead of individual objects and fields. ... as individuals. Therefore, the SELECT clause can only use properties of the groups, which include: The properties that are ...

 
forum_thread

Is 2 level cache in use?

Hi, Is there any way to check, if 2 level cache is in use? Right now I've done two things: 1. objectdb.conf with cache size is placed in WEB-INF directory of my web application. 2. persistence.xml was modified with: ... 2. persistence.xml was modified with: <properties> <property name = ... value = "ALL" / > < / properties> But after few benchmarks I don't really see any ...

 
forum_thread

Error 363 - Failed to read value of inverse relationship

I've got two objects: @Entity public class EEvent { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; @ManyToOne(optional=false) private ETown town; public ETown getTown() { return town; } public void setTown(ETown town) { this.town = town; } } And: ... ) { Map<String, String> properties = new HashMap<String, String> ( ) ; properties. put ( "javax.persistence.jdbc.user" , "admin" ) ; properties. put ( "javax.persistence.jdbc.password" , "admin" ...

 
tutorial

Step 6: Set the Spring XML

Explains how to set XML in an Eclipse Spring MVC JPA web application project. To integrate the Spring Framework into a web application we have to add the definition of the Spring dispatcher servlet to the  web.xml configuration file and to configure that servlet using another xml configuration file. Open the  web.xml ...

 
tutorial

Step 6: Set the Spring XML

Explains how to set XML in a NetBeans Spring MVC JPA web application project. To integrate the Spring Framework into a web application we have to add the definition of the Spring dispatcher servlet to the web.xml configuration file and to configure that servlet using another xml configuration file. Open the web.xml ...