Questions tagged as 'hibernate'

0
answers

Invalid value: For input string:

Error updating, the value of the field must be the FK code for the foreign key, in the INPUT of the form the value br.com.tkcsapcd.model.bean.ProjectInicio@7adacc20, value="$ { "Should something be modified?                                   ...
asked by 25.04.2017 / 23:12
1
answer

Return person and phone list

I have an entity called Pessoa . This entity has a list of phones of the Telefone entity. How do I get the person's information and popular that person's phone list in select with only hql ? When using the query...
asked by 26.04.2017 / 19:10
0
answers

INFO: Error parsing HTTP request header

When submitting a form, I was testing how much information I can send via HTTP. I am using Mysql DBMS. I have an application that runs several fields of type textarea. Example: a form with 10 textarea (I use a field limiter to validate the am...
asked by 29.04.2017 / 23:57
1
answer

Search using two parameters in the JPA

Good evening everyone, I am bundled here in a logic, I made the DAO for all the CRUD of my project only in that it will not only have the search by the ID and also I am trying to do some method that searches the request by the ID and also by the...
asked by 05.04.2017 / 23:54
1
answer

Hibernate Mapping - One to many / One to One / etc - Explanation

Basic example to understand how hibernate mapping works. Person table Sex table Mappingtothesetablesgenerates:Sex:publicclassSexoimplementsjava.io.Serializable{privateIntegeridsexo;privateStringtipo;privateSetpessoas=newHashSet(0);publ...
asked by 15.03.2017 / 16:17
1
answer

Help about a JPA query

I'm trying to make a query using JPA criteria, it would look like this: I'll go through 2 initial dates and a DateFinal and a vehicle's board how can I make this query? The table that I'm going to consult would be Service and it has a car...
asked by 08.04.2017 / 03:33
1
answer

Hierarchical selects. Parent-child relationship in the same table

I have a Product Entity with @ManyToOne. And I need to bring the last child record of each parent. I made a select in the table and it is bringing what I need but I am not sure to do the same query with hql. This is my select in mysql: SELE...
asked by 16.03.2017 / 17:28
0
answers

Error trying to connect sql server 2014 with hibernate-core 5.2.7 Final

I'm learning java with hibernate. I'm using maven to manage the project. I get the following error INFO: HHH000206: hibernate.properties not found as below in the image (click on the image to get bigger). Theerrortracestackisthisaquijava.l...
asked by 13.02.2017 / 02:14
2
answers

Exception solution ServiceException and Failed to execute goal org.codehaus.mojo: exec-maven-plugin: 1.2.1: exec?

The following error occurred:    ServiceException and Failed to execute goal org.codehaus.mojo: exec-maven-plugin: 1.2.1: exec? I have already changed the provider name of org.hibernate.ejb.HibernatePersistence to org.hibernate.jpa.Hibern...
asked by 19.03.2017 / 11:11
2
answers

@Autowired annotation error

Good morning. I am studying JPA + Hibernate + Spring MVC and I am a few days with this problem and I can not solve it. I searched the internet and the solutions I saw did not resolve. Thank you. Stack GRAVE: StandardWrapper.Throwable org...
asked by 15.02.2017 / 17:24