Questions tagged as 'hibernate'

1
answer

org.hibernate.QueryException: could not resolve property: Order of: Classes.Customer

I'm having trouble setting up a HQL query in Hibernate, look at the error that occurs:    Exception in thread "AWT-EventQueue-0" org.hibernate.QueryException: could not resolve property: Order of: Classes.Customer [select c from Classes.Custo...
asked by 22.02.2017 / 21:44
1
answer

Hibernate - Set key foreign object without fetching object. Direct by Id

Does anyone know if it is possible for me to set an object that is foreign key if I have to fetch it. That is, just setting the direct id? Example: low.CompanySet (daoCompany.searchPorId (new Long (rsBeixa.getString (6)))); way you'd...
asked by 20.02.2017 / 21:41
0
answers

Spring Security + CDI + HibernateFilter

Good afternoon! I'm on a system with Primefaces, Hibernate, CDI and I'm implementing security with Spring-Security and controlling transactions with HibernateFilter, declared in web.xml. I did all the tests with authentication in memory and g...
asked by 19.01.2017 / 03:06
2
answers

Date Formatting in Java and Hibernate

Good morning everyone! I'm trying to return a formatted date, it's in the database as date, but for return it could be a msm string. Some friends have indicated two modes, creating a new method for formatting or using java 1.8's LocalDate. The...
asked by 16.01.2017 / 11:38
0
answers

Error making associations in XML with hibernate

I'm having trouble making many-to-one associations. Any help thanks    Exception in thread "AWT-EventQueue-0" org.hibernate.MappingException: An association from the table material refers to an unmapped class: Client Class package...
asked by 27.01.2017 / 21:16
0
answers

Problem with Lists in JSF & JPA

I do not know if the way I'm doing is correct, but I have a problem:    java.lang.IllegalArgumentException: id to load is required for   loading. When I try to remove a template from the list, and in addition, the list of selected templat...
asked by 29.11.2016 / 00:59
1
answer

Object injected but is null [duplicate]

I have an object that is injected into my converter: package br.com.pokemax.modelo.converter; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.faces.conver...
asked by 24.11.2016 / 22:16
1
answer

SQL syntax error when starting the OW2 Orchestra

Recently, I downloaded the OW2 orchestra software. In the user manual, after going through all the configuration steps (I am using MySQL as my BD. The other settings are the standards, including the use of hibernate), I came to the instructions...
asked by 14.11.2016 / 02:41
0
answers

Persistence of DateTime AngularJS x Java x MySQL

I created an application in our company to control the use of certain equipment in our Industry. The fact is that there was a need to control the date / time of a product entering and leaving a certain equipment. My Architecture: Front: HTML...
asked by 20.10.2016 / 21:47
1
answer

Hibernate with PivotTable Names

Good Morning / Afternoon / Evening Personal! in a scenario where a bd table must have a name and concatenated dates like that would get with hibernate since the base name is annotated in the model. As it is: @Entity @Table(name="nome_da_tab...
asked by 13.10.2016 / 19:13