Questions tagged as 'hibernate'

1
answer

How to use ENCRYPTBYPASSPHRASE and DECRYPTBYPASSPHRASE in hibernate?

I comment, I'm working with hibernate 4.3 in netbean with SQL connection and in my database I have the following table: USUARIO( ID_USUARIO VARCHAR(08) NOT NULL PRIMARY KEY USU VARCHAR(12) CLAVE VARBINARY(8000) ) Before working with hibe...
asked by 10.06.2018 / 19:22
1
answer

HQL excluding between tables

I need a pair of excludable Querys to check a "availability" factor within a db. It is worth the query so far I have been posing in various ways and I think, this is the most correct but I still give error from Usuario judge where judge...
asked by 24.04.2018 / 09:38
0
answers

How to fill the JFrame fields stored in MySQL using Hibernate?

my question is how can I fill in the fields of my JFrame with the data stored in my bbdd using hibernate? That is, I select a row of my JTable , I get its id and by clicking on a edit button there will be a form that will have a...
asked by 14.12.2018 / 15:23
0
answers

Display sql statistics with javamelody and mssql

I'm trying to set up javamelody to show statistics the queries I cast against mssql. The project environment is made up of the following technologies: Java jdk 1.8 Tomcat 9.0.0.M15 Javamelody 1.70.0 Hibernate 5.2.12.Final Driver com....
asked by 02.03.2018 / 10:21
0
answers

Many files are generated in Tomcat's temporary folder

One of our clients informed us that the application that we did for them and that is hosted on AWS was falling constantly. We started to review the logs and discovered that the server was falling and throwing the following exception: "too man...
asked by 17.04.2018 / 15:51
1
answer

How to save entities dependent on others with JPA (Java Persistence API)?

I am currently developing an api-rest with spring-boot, whose services will be called from an application in angular, the SQL server is being used as database manager. I have the following tables: I am capturing the data of an insured,...
asked by 31.01.2018 / 21:46
0
answers

Error in transactions, mix in the requests to the database in hibernate?

I do not know where to look to correct this error, first commenting that this does not happen in a local testing environment, this error only comes out in production mode on the server, this error seems illogical and should not happen, is the ne...
asked by 08.12.2017 / 20:34
1
answer

HQL Queries (Hibernate)

I am starting to use the mapping tool Hibernate and in order to know and become familiar with this technology I am making some inquiries through HQL but I am not entirely sure if the approach I'm giving you is correct. Below I will presen...
asked by 26.11.2017 / 21:50
0
answers

Prevent hibernate from inserting the name of the class in mongoDB

I have a person entity with two simple fields: class Customer { @Id String id String firstName String lastName } by doing a simple save on that entity, using spring mongo repository: repository.save(new Customer(firstName:...
asked by 13.09.2017 / 10:01
1
answer

Return Json of type "field_name": value with Java and Spring

I'm doing a REST API that consumes data from a mySQL database and returns it in JSON format. I use hibernate, so I have object entities "connected" to the database with their respective notations @Entity, Id etc. and these are returned perf...
asked by 25.06.2017 / 03:23