Questions tagged as 'hibernate'

1
answer

Error: 'Operand type clash: image is incompatible with numeric'

When trying to save an object in the database, it gives the following exception:    org.hibernate.exception.DataException: could not update. [...] Caused by: java.sql.SQLException: Operand type clash: image is incompatible with numeric. I...
asked by 18.11.2015 / 12:19
0
answers

Integrity of running Java application running in long time

I have tested my Desktop application, and I noticed that when I leave running for a long time I notice changes in the behavior of the actions that should be performed. My application runs using Hibernate, and I notice these changes after a fe...
asked by 18.12.2015 / 18:20
1
answer

Problem with Hibernate

I'm trying to learn about hibernate next to a tutorial by making an app for a petshop and I have the following issues: INFO: HHH000228: Running hbm2ddl schema update dez 16, 2015 8:34:52 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute INFO:...
asked by 17.12.2015 / 00:40
0
answers

Hibernate.engine.jdbc.spi.SQLExceptionHelper log Exception, SQL state null

1 I have this problem in my Hibernate session Validity a newly established conection, when doing the query, it miss the session, only after giving several F5 the session back .. can anyone help me? ... follows the image of the Error. 1.Contex...
asked by 28.10.2015 / 13:11
0
answers

Could not determine type for: java.util.List, at table: ..., for columns: [org.hibernate.mapping.Column (...)]

I'm having a very simple problem using JSF + JPA with Hibernate. I have two classes: Message and Comment. The Message class contains a list of Comments. But when trying to make that relationship the error below happens. Can anyone help? Thanks!...
asked by 26.10.2015 / 16:26
1
answer

Refresh Variable - SQL Database - Hibernate

Here are excerpts from my attempt to create real estate and user registration software. The project was developed in the MVC framework. (Model, View, and Control.) Problem: How to update an attribute of a MySQL table? The update must be done...
asked by 29.11.2015 / 19:58
1
answer

List two related tables PrimeFaces x Hibernate

I need to list information from two tables on the same grid, they have relationship created by hibernate itself. You would need the vendor name in the table below. In case they would be these classes: Template: public class Produto {...
asked by 28.11.2015 / 16:57
0
answers

Validate user login

I am not able to validate the user login. Could someone help me? My Dao: public Login getvalidarLogin(Login login ){ Session session = HibernateUtil.getSessionFactory().getCurrentSession(); Transaction t = session.beginTransaction(...
asked by 13.10.2015 / 09:14
1
answer

NullPointException when setting value from Converter

I have an application where I need to calculate data coming from a particular relationship. When usuarioController.view == 3 , Login is set to Usuario and Plano (already persisted) to Login so that in the next...
asked by 08.10.2015 / 02:41
1
answer

Order By Hibernate in JSF

Hello, good afternoon, I'm a beginner in this web world and I need to order establishments by punctuation (the best rated in the beginning, LOGIC) The error is An Error Occurred: java.lang.NullPointerException Here is my entity, any...
asked by 05.11.2015 / 15:31