Questions tagged as 'hibernate'

1
answer

Error trying to use connection with mysql in Apache Server Tomcat in the Cloud (hibernate)

I have an error trying to execute the execution of my web application on a web server called facilcloud (jelastic), my project is working with mysql hibernate, mongodb, java 1.6, spring mvc, bootstrap, maven among other tools. The problem I h...
asked by 31.12.2016 / 07:58
1
answer

ERROR: Can not add or update to child row: a foreign key constraint fails

I would like to ask if someone has experience in hibernate. Why theoretically this until two days ago was working correctly. (theoretically why I was developing and did a single test, which saved the data correctly and then did not probe until n...
asked by 01.12.2016 / 09:56
0
answers

Share entityManager between projects

I have a project in which I am using spring and persistence. I am managing @Transactional , but there is an external project which is going to be used for common operations in the database and I am sending the entityManager with whi...
asked by 25.11.2016 / 19:54
1
answer

Help with ClassCastException with reflection in hibernate

Someone can support me with this exception: java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType It happens when I run the following code in a DAO to use hibernate. The problem is in the get...
asked by 24.11.2016 / 20:21
0
answers

For Loop only prints the first record multiple times

I have the following problem. I'm going through a list that contains multiple records, but when I print this information it only shows me the first row multiple times, let's say that a specific user has 49 rows in BD and he prints the first v...
asked by 01.11.2016 / 17:48
1
answer

How to configure Spring MVC with Hibernate java config (without xml's)

Hi, I am working on a project in spring mvc, I have already done some of them before but I configured them with xml. The java option makes me cleaner. In this application I have already configured: Apache Tiles slf4j with logback I trie...
asked by 26.10.2016 / 17:27
0
answers

Hibernate plugin in Eclipse Mars.2 does not generate POJO's with Reverse Engineering

Well, that's the question. I have everything configured as it is supposed to be configured, and it does not generate anything, any class or file .hbm.xml of mapping. The bookstores that I have is because I was adding for a NoClassDefFo...
asked by 17.08.2016 / 06:13
1
answer

Hibernate error when trying to use the ControlsFx library

What I want to try is that when writing something in my textfield it is self-completed with information from my Database Here I declare the The text box that I want the completed car to make @FXML private TextField txtGeneracion; Class j...
asked by 17.10.2016 / 05:08
1
answer

Jasypt and hibernate

Hi, I wanted to encrypt the key I have to the database in the file hibernate.cfg.xml, and I found Jasypt can do it, I followed these tutorials. link link I used the encrypt.bat and put the parameters to return the key to the encrypt...
asked by 05.04.2016 / 05:16
1
answer

Problem memory objects overwritten when consulting database

Good morning, I have a problem that has been bothering me for two days. The problem in question, is that I have an X object with some data in memory, and when I consult in bbdd the X object to check if what I have in memory and bbdd is the sa...
asked by 26.09.2017 / 13:38