Questions tagged as 'hibernate'

0
answers

Saving whole object instead of only name [closed]

Hello everyone. I have a problem when I store cattle data in the bank. The situation is as follows: I'm with two SelectOneMenu on my screen where one is dependent on the other. One is to indicate the type and the other to indicate the breed of a...
asked by 29.08.2016 / 02:45
0
answers

JSF Download Archive Saved in the Bank

Hello, I have a jsf page where I load the data of a entidade , between the data there is an attached file (pdf, xls, jpg etc.). I would like you to click on the file name to download the file. If anyone can help in any way thank you. Me...
asked by 26.08.2016 / 16:40
0
answers

problems with @Injection

Hello everyone. I'm creating a program that handles people and livestock records. In this program, on the cattle cadastre screen, I am creating two SelectOneMenu of primefaces. One is of cattle type and the other of cattle breed. These two Selec...
asked by 28.08.2016 / 18:19
0
answers

Edit dataTable in Dialog box in JavaWeb - JSF

I need to edit a line of the dataTable when I open the dialog, but it is not working the way I am doing, I did a test in the console, and the object gets null when I send the edit of it, it's like it does not load. Image to demonstrate what I...
asked by 30.09.2016 / 17:58
0
answers

ListView with Hibernate 3 not popula

I have the class below, the listarGeneroTreeView () method, captures the values I have in the database. However, I am not able to display this data in the treeview. I know only that it works by a message that I inserted to know if it was right....
asked by 23.09.2016 / 06:43
1
answer

org.hibernate.PropertyNotFoundException: Could not find setter for sum on class Class

I'm trying to list the best selling products using SQLQuery (if anyone knows of other ways to perform such as eg using Criteria, Projections also supported) with Hibernate, org.hibernate.PropertyNotFoundException: Could not find setter for...
asked by 06.09.2016 / 20:18
1
answer

I can not download the dependencies of Hibernate and mysql #Algaworks

I am following the algaworks-ebook-java-ee-7-com-jsf-primefaces-e-cdi-2a-edicao-20150228 handout and in the financial project for the hibenate and mysql dependencies in pom xml I can not get the libraries and thus I can not annota...
asked by 14.07.2016 / 00:52
1
answer

saving method: org.hibernate.exception.ConstraintViolationException: could not execute statement

Personal I have a small screen that registers name and type. When I click on Physics type the date of birth is rendered and I need to save it and when I click on Legal I have to save a branch of activity that is loading the branches correctly in...
asked by 21.08.2016 / 00:53
0
answers

Perform foreign key hibernate (annotations) mapping also being the primary

I want to map hibernate annotations in my class, the one-to-one relationship between tables, and the primary key of one is foreign and primary in the other, and the second is not part of the first , could anyone help me?     
asked by 02.07.2016 / 21:39
2
answers

Insert record in the bank inside a for using hibernate

I need help, I'm trying to create a fixed expense post. I have to insert for example 12 records in the database, through a loop inside the for. To insert the data I am using hibernate, but it only inserts a line, the 11 lines that it should i...
asked by 02.06.2016 / 22:43