Questions tagged as 'hibernate'

3
answers

Problem with hibernate entities

I have a problem with hibernate that tells me that entities are not mapped. Here is the error: INFO: HHH000397: Using ASTQueryTranslatorFactory Exception in thread "main" java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.Q...
asked by 22.10.2018 / 01:28
1
answer

Hibernate object problem!

Good morning, everyone! I have a problem with the objects in Hibernate. This is the method I use to extract the object: public Moto loadMotoId(SessionFactory SessionBuilder, int idMoto) { Session conexion = SessionBuilder.openSession();...
asked by 01.02.2018 / 17:16
1
answer

Problem with Hibernate

I just had a problem when inserting a product (in this case) in the database. I'm working with the mapping and it always returns "false". I can not find where the possible failure may be. I show the classes. Class Mapping Products: pub...
asked by 04.09.2018 / 10:55
1
answer

problem hibernate Envers "ID" Invaled Identifier

Good morning, my problem is as follows. I have to audit the entities of my application. For this I use the Hibernate Envers tool. I have all the entities I want to persist annotated with @Audited . I have also added the _AUD and REVI...
asked by 26.01.2018 / 14:35
2
answers

Hibernate with sqlite [closed]

I am developing a desktop application and I want to do it using Sqlite e Hibernate . Does anyone know if it is possible to integrate Hibernate with Sqlite3 ?     
asked by 17.12.2015 / 13:23
1
answer

Hibernate LazyInitializationException

I have a problem with my java project when I execute a function generated by the hibernate it returns it correctly, but if I try to access an instance object of another generated class it gives me an error because this is null T...
asked by 21.06.2017 / 18:07
1
answer

I have an error showing data in a Grid

I'm working with Java Spring , hibernate and maven and when I see the data in a grid I get this error:    SyntaxError: JSON.parse: unexpected end of data at line 1 column 147704 of the JSON data. But it only comes up when I add data...
asked by 12.09.2016 / 16:30
1
answer

Hibernate @ManyToMany doubts

I'm quite a rookie as far as Hibernate is concerned, the fact is that looking at the documentation of the annotation @ManyToMany a question has arisen, which is quite appropriate to my case, and is as follows: Let's say the case that I...
asked by 11.08.2018 / 22:40
3
answers

Array of native query to Java object

I have a problem when performing a native query, where the result in SQLManager is this: Query: "select p.cod_producto, p.deno_producto, array(SELECT t.cod_tanque FROM estagas.tanqu063 t where t.cod_producto = p.cod_producto) as tanks, array(S...
asked by 27.11.2017 / 12:38
1
answer

Doubt with the treatment of a manyTomany and oneTomany scheme mixed

I'm doing an event management web project for class with java, jsp, hibernate h2 and maven. My question is, how do I associate users with the events and both with the table? I mean, I want the application to remember which user has registered to...
asked by 25.05.2016 / 21:45