Questions tagged as 'hibernate'

1
answer

Handling of composite keys in hibernate + netbeans + java

In a Java desktop application I have to do a crud on a parent and a daughter table. The daughter has a key composed of the key of the parent table and another field. Using netbeans and hibernate I have generated the pojos of the two tables, but...
asked by 19.07.2017 / 22:39
0
answers

MAVEN MojoExecutionException when saving with JPA

I am doing a small program using Maven together with JPA as well as Hibernate, when trying to make a test of the classes that I have for handling objects, I miss the following error and it does not allow me to do any operation:    Failed to e...
asked by 28.06.2017 / 23:20
0
answers

Interface management with hibernate

Hello my problem is that I do not know how to implement the mapping in XML with an interface between half a step to explain iProducto is my interface and uses it to filter and have a single selection option that can be a plate or produc...
asked by 14.06.2017 / 00:30
1
answer

optimization of the session creation file in hibernate?

good, I currently have this file that creates my session in hibernate. my question how could I optimize this, because when I run the application is echoed with the pattern DAO, in each instance of the class that is the creator of the sessi...
asked by 16.06.2017 / 15:49
1
answer

I have an error when making a query with hibernate in JSF in a log with relational tables

Errors that catch my attention but I do not know how to solve them Initial SessionFactory creation failed.org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister 11-Jun-2017 21:43...
asked by 12.06.2017 / 03:09
0
answers

Difference between persist () and save () hibernate?

I'm wanting to save an External User this is my controller that interacts with the BD The thing that when I want to save a UsuarioExterno with all your documents I see this error.    org.hibernate.PersistentObjectException...
asked by 22.06.2017 / 03:26
1
answer

The action of the jsf commanButton does nothing

I have a web application and when you click on the save button it does not do anything ... Here is the code: <!-- Aqui se crean los elementos que seran utilizados por el usuario --> <div class="container" id="formu"> <h:form...
asked by 04.06.2017 / 19:18
0
answers

Problems with datatable

I have a datatable that collects all the data stored in a database table, this table of the database has 2 foreign keys and which are associated by their respective ID, the point is that when running the What I want is not to see the ID of the f...
asked by 18.05.2017 / 23:47
0
answers

Why does hibernate create the id column when I specify another primary key?

I'm working on OpenXava , a framework based on Java , and when using Hibernate I create a column called id in database ( MySql ), even if specific in the class that the key would be is called login . I put the cod...
asked by 04.05.2017 / 15:41
1
answer

Java, Hibernate, JPA, ORM @GeneratedValue

Good morning, I would like to know what these two notes on programming are for. ? Is it better than a self-rated id of type int? @GeneratedValue(generator ="system-uuid") @GenericGenerator(name="system-uuid",strategy="uuid")     
asked by 12.05.2017 / 19:21