Questions tagged as 'hibernate'

1
answer

The MySQL database call does not work for me JSF Hibernate

I get this error when executing a query that should connect to the database when making a log: Hibernate: select this_.username as username1_0_0_, this_.password as password2_0_0_, this_.name as name3_0_0_, this_.lastname as last...
asked by 11.06.2017 / 00:56
1
answer

Error inserting data with Hibernate

I'm trying to insert data in two tables with a one-to-many mapped with Hibernate in Netbeans, but when I run the application I get the following error:    run:   Mar 11, 2017 12:28:20 AM org.hibernate.annotations.common.reflection.java...
asked by 11.03.2017 / 06:54
2
answers

How to obtain entities and their relationships using Hibernate?

I am working with Spring 4 and Hibernate 5. I am doing a test application to manage the events of a fictional theater, and also keep information about those events. I have several classes annotated with @Entity, such as Theater, User, Seat, Room...
asked by 22.03.2017 / 15:47
2
answers

Update datatable when changing a p: inputText

Good morning I'm trying to make a loan system in which by typing an ID number inside a p: InputText through ajax it performs a search in the database and it gives me a Client idea is that when I look for this client I return a list of loans...
asked by 20.03.2017 / 16:34
1
answer

Problems when deploying a web application

Hello, how are you? Good afternoon, I hope and you are well! I have the following problem: I can not deploy the application and it generates an error message; by this means I will send you a Screenshot of the error that appears to me and here...
asked by 19.01.2017 / 22:21
1
answer

How to extract a name from my controller?

I have times trying to extract the current user to be able to make a comparison in my controller so that only the user who made it can delete a reservation. But I have not found a way to get that user, any ideas? Controller @RequestMa...
asked by 02.11.2016 / 16:05
1
answer

Lenar a JTable with JPA

I'm new to this JPA and I know almost nothing about it, although I've researched a bit, I still can not find a way to fill the table with the Entity , the code with which I do a DefaultTableModel and try to fill the table with this...
asked by 20.10.2016 / 22:14
1
answer

Can not find class in bean defined in the ServletContext

I am using for my project (maven 3.3.9, spring 4+, hibernate4 +, tiles 3, postgres 9+, jdk 8, wildfly 10), and I am receiving the following error message:    Can not find class [org.springframework.orm.hibernat4.LocalSessionFactoryBean] for b...
asked by 14.07.2016 / 03:40
2
answers

How to iterate or traverse an Object of the Object class that contains objects of different class inside it?

I have this query in hql: String lHql = " from Grupo g" + " join g.Persona p " + " join g.Animal a " + " where g.tipo= "A""; Query lQuery = pSession.createQuery(lHql); Object l...
asked by 23.12.2018 / 18:50
0
answers

How to disable "update" in the "save" method of JpaRepository

I'm trying to insert a new user into my user table and I want to have control if we insert an existing user that does not update it. Currently it seems that the save method or saveFlush derivatives try to insert and if they already exist they...
asked by 17.12.2018 / 16:49