Questions tagged as 'hibernate'

1
answer

Fill a jCombobox using join and hibernate

I am doing a job in college that where should I create a scheduling system for sellers from a car dealership. The technologies used are Java, Swing, and Hibernate. I divided the project into layers to make it easier, I created the client, ven...
asked by 27.06.2016 / 12:41
1
answer

Removing items from a OneToMany interface by default

I have an entity that has a list attribute of type OneToMany: @Entity public class Pai { private List<Filho> filhos; //demais atributos... @OneToMany(mappedBy = "pai", cascade = CascadeType.ALL) public List<Staff>...
asked by 20.07.2016 / 17:42
1
answer

JPA / Hibernate - LazyLoading OneToMany duplicating records

Well, I have the following structure: public class FinCxaTransacaoGrupo { @Id @GeneratedValue(generator="gen-uuid") @GenericGenerator(name="gen-uuid", strategy = "uuid2") @Type(type="pg-uuid") @Column(name="id_fin_cxa_tran...
asked by 01.07.2016 / 20:02
1
answer

Jasper Studio with Hibernate Session

I'm trying to add a connection in Jasper Studio via the "Hibernate Session" option I've added the Hibernate .jars, the MySQL Driver and set the hibernate.cfg.xml file, but I still have the access: Caused by: java.sql.SQLException: No suitable...
asked by 30.06.2016 / 20:23
1
answer

Hibernate - Dynamic Instantiation using factory

I know that using Hibernate Dynamic Instantiation I can instantiate an object according to a constructor. The Problem: I need to optimize the system as much as I can, and I'm done creating 5+ constructors in the same class. I want to know...
asked by 28.03.2016 / 16:12
1
answer

I can not save to the database, nor does it show error logs in the hibernate project

In the project I use hibernate , and when I try to save a new client, it only shows the validation message of the CadastroClienteService class. The strange thing is that all fields are filled in form, it seems null pointer , b...
asked by 20.03.2016 / 19:27
1
answer

How do I make a basic configuration in the persistence.xml file to access a database in SQL Server 2008?

I looked into how to configure the persistence.xml file in a basic way, but I was even more confused about this configuration. So, I'd like to know how I can do a basic configuration in the persistence.xml file according to JPA...
asked by 01.04.2016 / 21:04
1
answer

Error with hibernate when running server

When running wildfly I have the following error excerpt in the log: 15:46:18,297 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."evolutionary.war".WeldStartService: org.jbos...
asked by 30.05.2016 / 20:50
1
answer

createQuery (HQL) returns NullPointerException when trying to perform LEFT OUTER JOIN

Personal speech, I'm having a problem trying to run an HQL in my application. HQL is basically this: select c.id, c.solicitante from <mypackage>.Exame c LEFT OUTER JOIN <mypackage>.Profissional prof Java code: hql = "sel...
asked by 25.02.2016 / 19:38
1
answer

AND and OR Operators

I recently started using the Criteria API because I need to make queries that would be very complex with HQL. How do I use the AND and OR operators in queries with the Criteria API?     
asked by 29.10.2015 / 03:50