Questions tagged as 'hibernate'

1
answer

Error No to traverse can not be null!

You see, I have a Medical Assistance table: package es.makigas.hibernate.modelo; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import javax.persistence.*; @Entity @Table(name="AsistenciaMedica") public cla...
asked by 26.02.2018 / 22:01
0
answers

Problem with the OneToMany association

I am trying to create an association one to many I have created tables about mysql, as well as entities, but it does not insert data and tried to debug but I can not find where the error may be. MySql: CREATE TABLE IF NOT EXISTS 'pubs' ( 'i...
asked by 02.03.2018 / 05:12
0
answers

Problem with Oracle view queries

I'm having an error that I can not understand why it happens ... and therefore how to avoid it. I will try to explain it. I created an entitity, from an oracle view: @Entity @Table(name = "VER_CONSULTAS_HISTORICO", schema = "HISTORICOS") pu...
asked by 02.03.2018 / 14:29
0
answers

How to make hibernate not share the auto-increment of the id of different tables?

It happens to me that I have a mini program made in java in eclipse and for the part of the bbdd use hibernate, I will put here the author bean and the book bean, and the AUTHOR class. It turns out that when I sign up for an author with his 3 bo...
asked by 02.03.2018 / 17:23
1
answer

because it sends this error ids for this class must be manually assigned before calling save () when trying to save?

I have the following table that shows a list of people and when clicking on a row, sends me to another page <p:dataTable var="consultaPersona" style="max-width:3000px;max-height:770px;" value="#{NivelesPersonaComponent.listNivelesPers...
asked by 02.03.2018 / 17:51
2
answers

Something is wrong with my program

You see, I'm doing a Java program with Hibernate in Netbeans. For this, I have a class called Professor, which has this code: package hibernar; import java.io.Serializable; import javax.persistence.*; @Entity @Table(name="Profesor") public c...
asked by 24.02.2018 / 12:16
0
answers

sessionFactory.openSession () gives error

I have a program that manages a table called Seguro. The Safe class: package ejercicio01; import java.io.Serializable; import javax.persistence.*; import java.util.GregorianCalendar; @Entity @Table(name="Seguro") public class Seguro imple...
asked by 24.02.2018 / 20:51
1
answer

How do I return a list with a range of two dates with hql?

I have created an integer of type String for the query of dates of a demand List<Demand> findAllDemandsBydates(String starDate, String endDate) throws ParseException; here is where I implement my code and say it is a string and I g...
asked by 25.02.2018 / 02:17
0
answers

Java hibernate: Error with Hibernate console configuration

I am trying to configure a project implementing Hibernate with postgresSql. When I try to configure Hibernate console configuration I get the following error and I can not continue: Does anyone know why it can be ?? Greetings and thanks...
asked by 28.01.2018 / 21:16
2
answers

How do I make an accountant come out as an object in my json?

This is my driver that I call it from a class called demand that I want to get the states counter for its id @SuppressWarnings({ "rawtypes", "unchecked" }) @CrossOrigin("http://localhost:8080") @RequestMapping(value = "counte...
asked by 02.02.2018 / 21:41