Questions tagged as 'hibernate'

3
answers

Saving ID of a table with two Primary Keys with Hibernate

Hello, I'm having a problem saving data to a last table. Well, this table has two foreign keys and the same ones are primary keys: WhengoingtotheController,savethetable,Iusethefollowingcodes:itv.setId();itv.setIngresso(ing);itv.setVenda(ven)...
asked by 29.05.2016 / 23:37
1
answer

What would be equivalent to these two properties of persistence.xml in hibernate?

I have these two properties in eclipselink: <property name="eclipselink.logging.level.sql" value="FINE"/> <property name="eclipselink.logging.parameters" value="true"/> But I would like to see the same using hibernate ....
asked by 04.04.2016 / 01:45
2
answers

Hibernate JPQL for multiple likes

I'm using hibernate in my project and I'm not sure whether to use multiple dynamic likes in the search. I have a simple field on the page where the client can enter the name of a user, but I need to be able to enter 2 names if necessary to re...
asked by 06.01.2016 / 19:49
1
answer

Authentication control in Java Web

Good evening, I'm doing a project using JSF, Hibernate and Tomcat and one of the requirements is: X RF 01 . The system must use passwords for secure control of the application. What could I use in this control? I tried the JAAS but I...
asked by 08.11.2015 / 01:09
1
answer

Duplicate value in the bank when inserting new users with an already used Role (Spring-Security)

Hello I'm creating a simple web application with SpringMVC and Spring Security. I made the User and Roles class as follows: @Entity public class Usuario implements UserDetails { private static final long serialVersionUID = 1L; @Id pr...
asked by 06.02.2016 / 03:57
1
answer

persistence of data in two or more banks simultaneously [closed]

Greetings! I would like someone to help me with some example of a JSF application that persists data simultaneously in more than one bank, ie: it will connect to 2+ banks and inject data into them. I'm using Hibernate. The project is in...
asked by 03.09.2015 / 14:07
1
answer

Application error on heroku

I made an application using IntelliJ using the database and everything is working very well, but as soon as I gave push to Heroku, a message appeared:    Application Error. An error occurred in the application and your page could not be ser...
asked by 13.02.2015 / 13:27
1
answer

Error in JPQL query

When I am starting my server, the following unexpected token error is occurring: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IServidorMensalRepositorio': Invocation of init method failed; nest...
asked by 05.05.2015 / 21:54
1
answer

Inheritance with jpa

Hello, I have a class called Usuario which is abstract and I have the class UsuarioComum and Administrador that inherit from Usuario , I am using JPA annotations to generate the automatic database, I want it to generate...
asked by 07.12.2014 / 02:19
1
answer

How to insert image into MySQL using Hibernate?

I'm using java with hibernate and would like to know how to insert an image into the mysql database. I have several information being persisted with hibernate, just missing the image.     
asked by 22.11.2014 / 16:43