Questions tagged as 'hibernate'

2
answers

(Incomparable Types: String and Order) Compare an entry in JTextField with the database in JPA

I try to make a way that the value entered by the user can be compared with the data of a database column or a JTable (not what is better for that purpose), for example: when the input of the control number to be: 123456 and in the coluna numCon...
asked by 10.04.2017 / 18:18
1
answer

java.lang.NullPointerException in Hibernate Annotations

I'm now watching the annotations part with Hibernate. I show you what I have: Here is my configuration file called hibernate.cfg.xml: <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/H...
asked by 23.04.2017 / 20:34
1
answer

Failed to lazily initialize a collection of role: com.companyname.cine.domain.Peli.actors, could not initialize proxy - no Session

I'm starting with Spring and I've come across this common mistake. After reading a lot and trying many of the suggested solutions (for loops for initializing, using transactional etc) in StackOverflow and other sites I have been unable to fix it...
asked by 24.04.2017 / 14:50
0
answers

PostInsertEventListener does not work when I insert a new element using Main class

I have a problem with the EventListeners of Hibernate. First I will tell you what my application is, I will leave the class code and then I will explain the problem. I am developing in Spring in its version 4, and I use Hibernate in it...
asked by 29.03.2017 / 17:07
0
answers

Exception (org.hibernate.exception.SQLGrammarException) org.hibernate.exception.SQLGrammarException: could not extract ResultSet

I am using Hibernate and I have a problem inserting a PERSON table, the exception is sent:    Exception (org.hibernate.exception.SQLGrammarException) org.hibernate.exception.SQLGrammarException: could not extract ResultSet and in the deta...
asked by 02.04.2017 / 01:43
1
answer

appContext.getBean gives me a proxy and not the manager object I'm looking for

Good, I am retouching an old application and I need to make a call to the database to retrieve an information. It is made in java, spring and hibernate. I have these variables. @Autowired private ApplicationContext appContext; privat...
asked by 06.03.2017 / 18:00
1
answer

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.StringIndexOutOfBoundsException:

My servlet: <context:component-scan base-package="com.tricas.controllers" /> <mvc:annotation-driven /> <context:annotation-config /> <context:component-scan base-package="com" /> <bean class="org.springframework.we...
asked by 15.02.2017 / 16:26
0
answers

Hibernate error: Unknown column 'pass' in 'field list'

Unknown column error 'pass' in 'field list' Student Class: package Servicios; public class Usuario implements Serializable{ private String mail; private String pass; private String nick; public Usuario(String mail,String pass){...
asked by 30.01.2017 / 23:48
1
answer

Problem with JSF, Spring and Hibernate driver

I am developing with JSF, Spring and hibernate and I can not create a Controller with my own methods to be able to call them from the xhtml, this is my code HomeController.java @ManagedBean public class HomeController implements Serializabl...
asked by 26.01.2017 / 21:26
1
answer

Databases related to hibernate

I made a migration to hibernate a crud and everything went fine until I lacked the last phase where two tables are related; but the problem is that you do not make the relationship. I made a small relationship, but it does not work whe...
asked by 26.01.2017 / 21:17