Questions tagged as 'hibernate'

0
answers

Error in creating an EntityManagerFactory using Persistence.createEntityManagerFactory

Application in NetBens 8.2 MySQL Database BD connector: jdbc 8.0 HIbernet 4.3.x This is my persistence.xml class within the META-INF <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.1" xmlns="http://xm...
asked by 16.10.2018 / 19:11
0
answers

Create Query SQL - Hibernate Java EE

I have a small concern and I hope that the most experienced can help me. I'm doing a web project with the Framework Hibernate , it turns out that I have it connected to a MySQL database in XAMPP, all right, I created a login so that users c...
asked by 16.09.2018 / 01:24
0
answers

The HQL statement does not recognize the AS?

@Override public List<MaestroTablaDTO> buscarMaestroTabla(MaestroTablaDTO maestroTablaDTO) { LOG.info("Inicio -- MaestroTablaDAOImpl -- buscarMaestroTabla"); List<MaestroTablaDTO> retornoListaMaestroTablaDTO = null;...
asked by 17.09.2018 / 21:23
0
answers

How can I predefine a data in a form (java Web)?

Hello, I have a problem when making a form to insert a user, as this one is related to a user type table, which user type has a description which are (Administrator and User) and I do not want to show it when filling the view and I want the user...
asked by 09.09.2018 / 06:28
1
answer

Hibernate sqlRestriction query

Good morning I have a problem when making a query with Hibernate, the thing is that I would like to join two consultations in one and I have looked to try it with joins and others but no idea. Let the queries have if you can guide me please, wha...
asked by 01.08.2018 / 11:00
1
answer

how to make bulk insert with hibernate and Java?

I have a problem, I need to insert thousands of records that are read from a file.properties, the idea is to make bulk insert but when I execute the batch it asks me that the ID of the table is not NULL, I do not understand why it asks for it, H...
asked by 31.07.2018 / 02:13
1
answer

SQL query with Hibernate Criteria

I'm making reports with Hibernate but I had a problem and I can not find a way to do it. The query is this: SELECT mes as mes, COUNT(mes) AS t_mes, SUM(total) AS totales, SUM(cantidad) AS cantidad, SUM(facturado) AS factur...
asked by 04.08.2018 / 01:28
0
answers

How to send Spring MVC a JSON of a formula with ExtJS (6.2.0)?

I'm making a Login using Spring MVC and ExtJS version 6.2.0. It does not work for me and I have already surfed without finding the solution since I pick up the username and password and supposedly send it to my Spring driver and there process th...
asked by 21.07.2018 / 16:31
0
answers

Obtain an entity, assign it and save it again

I have a system where I have users and each one can have several roles. @Entity @Table( uniqueConstraints= @UniqueConstraint(columnNames={"username"}) ) public class CustomUser implements UserDetails { private stati...
asked by 20.07.2018 / 05:15
0
answers

Hibernate Mapping Error

I have the following Hibernate xml file: <hibernate-configuration> <session-factory> <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property> <property name="hibernate.connectio...
asked by 10.07.2018 / 16:10