Questions tagged [persistence.xml]

Used with the Java Persistence API, specifies names and database properties.

When used with the Java Persistence API, the persistence.xml file is usually placed in the META-INF folder; it's used to specify the persistence provider name, entity class names, and properties like the database connection URL, driver, user, password, and so on (taken from http://www.javaworld.com/javaworld/jw-01-2008/jw-01-jpa1.html?page=3).

519 questions
0
votes
1 answer

DEPLOYMENTS IN ERROR: ... ...no Connection Available error while setting up JPA with jboss

I'm porting a glassfish jpa app to jboss and am running into this error: DEPLOYMENTS IN ERROR: Deployment "persistence.unit:unitName=Avengers.war#AvengersPU" is in error due to the following reason(s): org.hiberna te.HibernateException:…
simgineer
  • 1,754
  • 2
  • 22
  • 49
0
votes
1 answer

confusion about Java EE's persistence.xml's property attribute

In Java EE, when using JPA to persist classes, my persistance.xml file looks like this:
Josh Monks
  • 129
  • 1
  • 2
  • 9
0
votes
0 answers

datasource vs. persistence.xml for database config parameter

In my project I'm using spring with jpa, and when I arrive to the config files, I mean appContext.xml and persistence.xml, I have encoutered the following situation : when I put the db config in the persistence.xml and I remove the datasource from…
Adil
  • 4,503
  • 10
  • 46
  • 63
-1
votes
1 answer

Foreign Key in One to One RelationShip Hibernate

I have an one to one relationship between the following 2 entities: @Entity @Table(name = "user") public class User { @Id @Column(name="id") private String id; @Column private String name; @Column private String…
-1
votes
2 answers

HibernateException Unable to construct requested dialect Oracle10gDialect

We are getting below HibernateException while deploying our application in jboss EAP 7.2. Could you please have a look and suggest some solution to this problem ? Thanks in advance. 2019-10-18 14:27:07,422 ERROR [org.jboss.msc.service.fail] …
Praveena
  • 1
  • 1
-1
votes
1 answer

Use H2-mem as persistence unit

i'm new in the world of java-ee. I try to implement an java-ee App. I'm having some trouble to configure the persistence.xml. I want the default java h2:mem to be my persistence unit. Hier is my persistence.xml
Lycone
  • 650
  • 9
  • 18
-1
votes
1 answer

How can i make list items clickable on android

Good day ,please i need to know how to make a list items click able on android..i am developing a bible with 10 versions for my final year project in school and i need to know how i can click on a list items and it woud take me to another page with…
-2
votes
1 answer

Java EJB + JPA + Problems With Getting Refreshed List

I am Working on a Project. In which i am getting the list from DB using named queries already available in the enitiy whenever i update the data of a field it get changed in DB but it is not reflected in the list i am getting from the Named…
3gth
  • 550
  • 5
  • 23
-2
votes
1 answer

what goes where in EJB, Spring application

I am new to EJB and worked a bit on spring, while creating the application what I do is I use the previous structure of my application and configuration as it is. When I get into trouble I saw no of solution each with different style of…
Bilbo Baggins
  • 2,899
  • 10
  • 52
  • 77
1 2 3
34
35