Questions tagged as 'hibernate'

0
answers

Simple error when trying to use Hibernate + JPA

Good morning, I'm starting to create a simple Hibernate database. I have the following classes Link.java link hibernate.cfg.xml link Form Action link And when you run the save it returns the following: INFO: HHH00004...
asked by 13.06.2016 / 14:40
0
answers

Two JBoss servers. It starts and the other does not. Same configuration

I have two servers that run JBoss with the same parameters for the same application. Although the log clearly states the error, I do not understand why one server works and the other does not. It starts without problems, sets the beans, but when...
asked by 23.07.2016 / 05:01
1
answer

property "hibernate.hbm2ddl.auto" value="update" is not working with postgres

The persistence.xml: configuration property property name="hibernate.hbm2ddl.auto" value="update" It is not working or better this is giving error at the time of deploy. If used as create works but even in development getting erased the...
asked by 29.06.2016 / 13:45
0
answers

How to initialize hibernate with reflection

Hello, I need to initialize a list using Hibernate.initialize (list) within a Generic DAO. User Template @Entity public class Usuario { @Expose @ManyToMany(cascade = {CascadeType.PERSIST, CascadeType.MERGE}) private Lis...
asked by 04.08.2016 / 14:50
0
answers

Error org.apache.jasper.compiler.TldLocationsCache

I am developing an application in JSF 2 (Mojarra 2.1.1), JPA 2.0 (Hibernate 4.2.3), Apache Tomcat 7.0.47 and JDK 7u79 and this error message is appearing: / p>    ContextListener:   attributeAdded ('org.apache.jasper.compiler.TldLocationsCac...
asked by 22.04.2016 / 16:48
3
answers

Close in transaction with hibernate

Hello, I need some help. I am trying to perform a transaction in hibernate. The problem is that when giving a close, the data is modified in the database, but this warning occurs    WARN [CommonAnnotationBeanPostProcessor] Invocation of...
asked by 07.06.2016 / 20:25
0
answers

Microservices + JPA Entities

I have two REST microservices (separate projects) responding by the following entities with JPA mapping (@Entity) and each with their own database. Product (ID and TITLE) and Category (ID and TITLE) I found some comments saying that it w...
asked by 25.05.2016 / 13:31
0
answers

Miscellaneous Database accessed at the same time JPA

Today I have the following scenario: my clients enter my site and the login screen appears, where I ask for the User Group, Login and Password. For the Group I have a database, where it has the data of the user database ie on which server it...
asked by 15.04.2016 / 03:00
1
answer

Maven Spring Project MVC + JPA

I'm new to Spring MVC, I created an Maven sample project for Spring MVC using Hibernate and JPA. I found some problems when setting up persistence.xml but I was not able to use dartasource managed by jboss, I left that aside, now when I try to g...
asked by 13.03.2016 / 22:34
0
answers

Use SELECT NEW JPQL to populate DTO in an @OneToMany relationship

Talk to people !! I'm trying to popular my DTO object, whose main object has a OneToMany relationship. Here is the code for your observations: ## Mapped Object: public class Usuario implements Serializable, EntidadeBase { private static...
asked by 24.04.2016 / 14:31