persistence.xml Questions
4
In my application, I use Hibernate with SQL Server database, so I set
<property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect">
in my persistence.xml.
In some ca...
Road asked 28/11, 2014 at 3:18
3
I'm trying to use Hibernate JPA but I need to create my persistence.xml (so I can use the entity manager correctly). I am unsure of what to create and where to place it.
This is how my hibernate.cf...
Hagerman asked 31/8, 2011 at 1:45
7
Solved
I want to have my persistence.xml in conf folder of my app. How can I tell Persistence.createEntityManagerFactory that it should read it from there?
Yardage asked 5/12, 2012 at 6:8
5
Solved
At work we have an entity library which is used by several clients for the library (several servlets, a desktop application, etc.). The entity library consists of JPA-Annotated classes and most pro...
Lifesaver asked 3/6, 2012 at 14:23
4
Solved
Persistence units in persistence.xml are created during building the application. As I want to change the database url at runtime, is there any way to modify the persistence unit at runtime? I supp...
Piccard asked 3/9, 2013 at 4:1
1
I want to let the persistence provider (EclipseLink 2.5.0) automatically create the tables in the, already existing, database by using the persistence unit property "javax.persistence.schema-genera...
Teeterboard asked 12/2, 2014 at 13:18
2
Solved
I am using JPA for a java class and having trouble putting the persistence XML file where it should be.
The IDE i am using is Eclipse Helios. Eclipselink jar files are downloaded and added to my J...
Tenney asked 26/11, 2011 at 4:0
5
I have a dynamic web project I have been working on that uses hibernate as a jpa provider. Up until the last week, I could insert, update, query, and delete from my databases using hibernate. Recen...
Hilda asked 22/12, 2017 at 20:56
3
Solved
Simple question...
I have a few projects in Eclipse enviroment
MainApp(Enterprise Application Project) which "includes"
WebController (EJB Project)
WebModel (JPA Project)
WebView(Dynamic Web Proj...
Finely asked 6/6, 2011 at 17:23
3
Solved
In my web applicaton I use OpenJPA on Apache Tomcat (TomEE)/7.0.37 server. I use Netbeans to auto generate class ("Entity Class from database..." and "Session Beans From Entity Class..."). At Sessi...
Zacynthus asked 17/9, 2013 at 9:56
6
Solved
Is there a way to initialize the EntityManager without a persistence unit defined? Can you give all the required properties to create an entity manager? I need to create the EntityManager from the ...
Sunder asked 1/1, 2010 at 21:19
3
Solved
Does anyone know a link, post, book or something else where are explained and nominalized all properties that you need and can use in persistence.xml file?
Probst asked 30/11, 2011 at 10:59
7
I cannot fix the persistence.xml file not found eclipse problem, this is a simple test project (Maven Nature) for a very basic EJB testing, the file is indeed in src/main/resources/META-INF/... thi...
Piscator asked 3/1, 2014 at 16:10
3
Solved
I have a dynamic application with glassfish server and using EclipseLink (JPA 2.1). I used to could put jdbc configuration in the persistence.xml directly and didn't have any problem. But now it fo...
Tiphani asked 4/11, 2013 at 7:39
6
Solved
I am developing a JavaSE application using JPA. Unfortunately, I get null after calling:
Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);
Below you will find:
A snippet of my code ...
Struve asked 11/10, 2013 at 16:20
1
Solved
Im working on a java spring project on eclipse, and while Im trying to run the project through a JUnit test, I get and error : Cannot find class [org.hibernate.ejb.HibernatePersistence] . I looked ...
Lucubrate asked 3/6, 2017 at 16:14
4
Solved
I have a maven enabled project imported into Eclipse. From Eclipse, I get an error "No generator named "system-uuid" is defined in the persistence unit" on the system-uuid portion of the following ...
Antonio asked 17/9, 2012 at 18:23
2
Solved
I'm trying to set up a simple jpa 2.0 project by following the information provided by my teacher's documentation . I've been on this for hours now, but no matter what I do I always get this except...
Ennui asked 20/5, 2013 at 18:18
3
Solved
I am trying to understand the following things:
When I make an EJB project and deploys it to Glassfish do I set up JDBC resources/connection pools at the administrator center of Glassfish or do I ...
Seibert asked 14/10, 2011 at 16:45
3
Solved
Is it possible to have two persistence units in a Wildfly (9.0.2) application?
I get "WFLYJPA0061: Persistence unitName was not specified and there are 2 persistence unit definitions in applicatio...
Yukoyukon asked 7/2, 2016 at 20:36
3
Solved
My development environment (IBM RAD 8 + WAS 8) is complaining that my project does not have a persistence.xml file. Still it seems that I can build and run my project. Is that file required and if ...
Dallas asked 23/5, 2012 at 6:51
11
Solved
When we configure a data source using Hibernate, we should add the hibernate.dialect property (or eclipselink.target-database if you are using EclipseLink).
I want to know what is the meaning of d...
Johnniejohnny asked 9/1, 2014 at 6:9
3
i'am using eclipseLink with jpa.
in my persistence.xml, i defined to generate a create.sql file. the file will be generated, but with missing ';'-separators for each sql statement.
is there a poss...
Pekoe asked 31/8, 2010 at 7:18
3
I'm trying to get started with using Guice Persist and JPA, which recommends using configuration via persistence.xml. Coming from a native Hibernate background where configuration was obtained prog...
Sikes asked 18/6, 2015 at 3:17
1
I am using JBoss Developer Studio. I have a project with a persistence.xml file. The file is perfect to me, but I keep getting this error on the tab that lists all the Problems of my project.
Clas...
Tabathatabb asked 17/3, 2015 at 12:2
1 Next >
© 2022 - 2024 — McMap. All rights reserved.