Questions tagged as 'hibernate'

1
answer

Problem with JPA [closed]

Classes and persistence.xml below. The problem is: entityManager is coming NULL. @ManagedBean(name="pessoaController") @SessionScoped public class PessoaController{ private List<Pessoa> pessoas = new ArrayList<Pessoa>(...
asked by 04.04.2014 / 19:12
1
answer

JPQL to query date / time of bank with hibernate without native query

Is there a way to query the database date / time without using active query ? In Oracle I do this: SQLQuery qry = session.createSQLQuery("SELECT SYSDATE FROM dual"); But I would like a generic query to not price the database.     
asked by 17.04.2014 / 19:12
1
answer

Unable to locate current JTA Transaction

The project is divided into the following modules: test-persistence; test-services; test-web; I use Glassfish 4 as the application server and it has a connection pool configured for connections to the database created in MySQL.   ...
asked by 25.08.2014 / 05:52
1
answer

Session is closed! Spring + JPA (HIbernate)

I'm trying to make an example of JPA + Spring . But I'm having trouble managing transactions. persistence.xml: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/n...
asked by 21.02.2014 / 18:53
2
answers

Warning Hibernate HHH000444 using Oracle 10g with WildFly 8.0.0 - follow-on locking

When doing some queries on a view using JPA (2.1) with Hibernate , I'm having this warning . Although it's working and just being a warning , it bothers me a little.    WARN org.hibernate.loader.Loader - HHH000444: Encountered request for...
asked by 27.03.2014 / 12:53
1
answer

Generating tables in sql-server with hibernate

I'm migrating a java system, to work with 2 or more databases. I created the tables for firebird using hibernate without many problems. The second bank did not succeed. The SQL Server. Why do microsoft products have to be different? Good ......
asked by 25.04.2014 / 18:21
1
answer

Configuration error on JPA and PostgreSQL connection

I'm having trouble connecting JPA to PostgreSQL. I think the problem is in the application configuration. I'm using the Java 8 version, and my pom.xml file is: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www....
asked by 25.11.2018 / 22:07
0
answers

Problem to update data

Good morning friends, I'm about 3 days with difficulties in an error that has been occurring in my application. I have two entities, CLIENT and VEI. I did the mapping bidirectionally saying that my client may have one or more vehicles. priv...
asked by 31.10.2018 / 16:50
1
answer

Operations at JPA

Good morning I'm developing an application in which the user has to inform the system of a list of exams and the system to display the laboratory units that perform such exams, but I have a question about the way in which to record in the bank t...
asked by 10.10.2018 / 16:27
1
answer

No Persistence provider for EntityManager named

I've been studying hibernate framework with JPA in a simple example of face I'm already having problems and my searches have not got me anywhere to solve my problem. This is the error you are giving: Exception in thread "main" javax.persist...
asked by 03.09.2018 / 04:45