persistence-unit Questions
2
Is it possible to get the associated persistence unit name of an EntityManager object? For example, you have
@PersistenceContext( unitName="fooPU" )
private EntityManager em;
Is it possible to ...
Cornhusking asked 9/11, 2013 at 7:6
1
Solved
We have an application that has a number of entity classes for which there must be two tables. The tables are identical, with the only difference being the name. The common solutions offered here o...
Begat asked 26/1, 2017 at 7:35
3
Solved
In a web application using struts2 ejb hibernate, is it possible to tell the application to find or create an entity for a specific persistence-unit name, which is written in persistence.xml file, ...
Phonemics asked 5/8, 2010 at 14:26
3
Solved
I have a JavaEE project that makes use of multiple persistence units. Is there any way to specify which persistence unit a particular JPA Entity belongs to? Some entities are in one data source, wh...
Wallis asked 25/4, 2013 at 0:39
5
Solved
I have a Java Web application that contains a Persistence unit. In this persistence unit I can select an existing data source or create a new data source. When I run this web application on the bui...
Mora asked 7/3, 2012 at 13:16
4
Solved
Context: Jboss5.1, MySql 5.0
I've tried a lot of possibilities .. a simple @GeneratedValue or other solution specifing explicitly the sequence generator, but also have the same problem...
There is...
Megrims asked 24/1, 2013 at 21:13
2
Solved
I use JPA persistence for my data models with Eclipselink as the persistence provider. I have a modular (OSGi) application and one of the modules contains the standard data model and a persistence ...
Uranalysis asked 31/7, 2009 at 10:16
1
Solved
Some people, including me, have been struggling with merging entities from different modules (jars) into a single persistence unit (especially with JavaSE, for instance here JPA 2.0: Adding entity ...
Mandimandible asked 22/2, 2013 at 14:23
3
Solved
I have configured two persistence units in my JPA/Hibernate configuration. Now i need to execute different import.sql for each persistence unit. How can I specify which import.sql should be execute...
Campeche asked 12/4, 2009 at 16:24
2
Solved
I am trying to use 2 persistence units within the same transaction in a Java EE application deployed on Glassfish.
The 2 persistence units are defined in persistence.xml, as follows:
<persiste...
Skellum asked 9/4, 2010 at 10:6
1
© 2022 - 2024 — McMap. All rights reserved.