persistence « XML « Spring Q&A





1. How to use parameters in persistence.xml?    forum.springsource.org

Hi, I'm trying to define a persitence unit in the persistence.xml file but instead of using concrete values in property elements I would like to use parameters that are stored in ...

2. Question with persistence.xml    forum.springsource.org

Question with persistence.xml Here is my persistence.xml Code: org.hibernate.ejb.HibernatePersistence com.jl.eb.dao.Category com.jl.eb.dao.CategoryItem com.jl.eb.dao.Base com.jl.eb.dao.CategorySpec com.jl.eb.dao.CommonCode com.jl.eb.dao.Cycle com.jl.eb.dao.Field com.jl.eb.dao.FieldValue com.jl.eb.dao.Rule com.jl.eb.dao.SpecSelect ...

3. XML Repositories (or XMLDBs) persistence    forum.springsource.org

4. Is it possible to remove persistence.xml dependency    forum.springsource.org

I'm working with a org.springframework.orm.jpa.ContainerEntityManager FactoryBean. I am configuring everything in my spring context and my persistence.xml is empty with the exception of a persistence-unit name. Is there any particular reason ...

5. Single PersistenceUnit, multiple persistence.xml    forum.springsource.org

Single PersistenceUnit, multiple persistence.xml Hi, I just upgraded to Spring 2.0RC4 and found it introduced a new mechanism for scanning persistence.xml. While in RC3, I have to override the LocalContainerEntityManagerFactoryBean to ...

6. "persistence.xml not found in the classpath" and workaround    forum.springsource.org

Hello, I'm using Spring 2.0.2 with Hibernate Entity Manager 3.2. When i'm tring to retrieve an instance of LocalContainerEntityManagerFactoryBean and the persistence.xml file is under a directory ...../resources/META-INF i have the ...

7. Setting fetchmode to JOIN trough persistence.xml    forum.springsource.org

Hi , is there anyway to define an all accross propery for the JPA or hibernate specific trough the xml to allways use join on associations when using anottation configuration and ...

8. persistence.xml location    forum.springsource.org

persistence.xml location I defined by bean as below i put my persistence.xml in /web-inf/classes/META-INF/persistence.xml when run, i get below error, body>

HTTP ERROR: ...

9. Error: configure Could not find persistence.xml    forum.springsource.org

Error: configure Could not find persistence.xml Hi All, I am trying to test the following code: Code: @Transactional public void updateT(Testtbl pTest) { EntityManagerFactory emf = Persistence.createEntityManagerFactory("test"); EntityManager em = emf.createEntityManager(); ...





10. persistence.xml + Placeholders    forum.springsource.org

persistence.xml + Placeholders I'm using JPA to access a datasource. I have read the documtation and the persistence.xml always has to be in the META-INF directory. It would however like to ...

11. persistence.xml - optional???    forum.springsource.org

persistence.xml - optional??? I have been using Spring and annotations, so my persistence.xml files are stripped down to the bare minimum - to the point where the only meaningful value is ...