Questions tagged as 'hibernate'

0
answers

Configure log hibernate in test to a file?

I want to configure the log of the queries of hibernate when I launch the unit tests to a log file. This configuration displayed on the server works like a charm but when I run the tests the hibernate traces are painted without the package na...
asked by 26.01.2018 / 13:36
0
answers

Relate 3 tables (HashSet) Hbm

I try to reach a field in a table and I do not know how to do it. I have a table where I have all the data (TespEolReference), I have another intermediate table called the EolMedia table where the hashset is to TespTaxon and the field taxonRecor...
asked by 23.01.2018 / 11:21
1
answer

How to identify a post database database with hibernet?

Good afternoon, I have the following problem I need to send an email to a specific user within my database, that user is in a specific scheme different from the pubic scheme. How can I identify the scheme that the user belongs to? Curre...
asked by 18.12.2017 / 23:35
1
answer

NullPointerException when calling a service

Hi, I'm setting up a web application with Spring and calling a service from Bean gives me a null pointer exception error. That service is at null. I do not understand why it is, any help? Bean: @ManagedBean(name = "alumnoBean") @SessionScoped...
asked by 18.11.2017 / 18:58
1
answer

Multi-table with Criteria

Guys I need an example of how to make a multitask in criteria, even though I do not find, I leave a query as an example, I only look for an example not a solution to my query, but the query is that way: SELECT * FROM PER_TIPO_REL_SERV TR, PER_...
asked by 30.10.2017 / 11:24
1
answer

Hibernate does not consult the last record in the database

A batch is trying to consult a record of the database to later update it, but simultaneously the user modifies that same record and manages to commit, since the batch was already executing query and obtains the old record (cache first level) and...
asked by 05.10.2017 / 17:06
1
answer

Query objects within other objects with Detached Criteria

I need to make a query based on filters. The filters are Nags , TipoCristal and descripcion . My object CristalLista contains the properties TipoCristal , Descripcion and Cristal . Within glass is the...
asked by 06.09.2017 / 20:49
0
answers

Hibernate: error in inserting in table with relation

For now, I'm working with these tables CREATE SCHEMA IF NOT EXISTS 'pasteleria' DEFAULT CHARACTER SET utf8 ; USE 'pasteleria' ; -- ----------------------------------------------------- -- Table 'pasteleria'.'Perfiles' -- ---------------------...
asked by 25.08.2017 / 00:18
0
answers

Error with hibernate, can not pass the login created?

I'm starting with hibernate, and in a JAVA WEB project that is with hibernate, JSP, springframewor I can not pass the login, where the following error occurs GlassFish Información: HHH000006: Autocommit mode: false Información: HHH000...
asked by 21.08.2017 / 22:25
0
answers

handle inheritance in java?

I have a small obstacle, I have a table that inherits others. The main table is Persona and my Entities: @Entity @Inheritance(strategy = InheritanceType.JOINED) @NamedQueries( { @NamedQuery(name = "Persona.all", query...
asked by 21.08.2017 / 21:06