Questions tagged as 'hibernate'

1
answer

SpringBoot with hibernate and relationship between postgres tables in different schemas

I have the following problem: I created a database named Test and it has two schemas: schema1 and schema2. Within each schema has a table: schema1 - > table1 schema2 - > table2 It turns out that if I try to make a relationship with Spri...
asked by 20.07.2018 / 20:06
1
answer

Java - Query Spring with current date

I have the following repository with the following method @Query("SELECT m FROM Money m WHERE m.data = CURRENT_DATE()") Money findTop1IfHasMoneyInCurrentDate(); My money class looks like this: @Entity @Table(name="MONEY_DATA", schema...
asked by 12.07.2018 / 18:03
1
answer

Error listing bank data - JPA2 and Hibernate / JSF

Console error in eclipse mar 27, 2018 2:05:24 PM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException GRAVE: Error Rendering View[/Fornecedor.xhtml] javax.el.ELException: /Fornecedor.xhtml @29,86 value="#{fornecedo...
asked by 27.03.2018 / 19:17
1
answer

Connection error when using Hibernate logs

I'm trying to see the sqls generated by Hibernate in my JAVA application but I'm having problems because adding the two commands below throws some exceptions. Commands I'm inserting in persistence.xml: <property name="hibernate.show_sq...
asked by 09.03.2018 / 14:55
2
answers

Error creating bean with name 'entityManagerFactory' defined in class path resource

Good evening, I have an application using Spring boot 1.5.10. I am trying to connect to the oracle database, but I always have the title error. Attempts: I have already returned the version of spring boot (which stopped giving the erro...
asked by 06.02.2018 / 03:56
1
answer

Error creating hibernate tables

I'm getting the following Exception when creating the tables in my application: Hibernate: create table UserConfig (id bigint not null, dateReg datetime, status varchar(255), accountActivationCurrentToken varchar(10000), forgotPasswordC...
asked by 06.02.2018 / 18:11
1
answer

Error in persistence.xml when connecting oracle database

I have this file to perform oracle database persistence. But do not connect! <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
asked by 16.01.2018 / 15:40
1
answer

ManyToMany Hibernate - study

I am studying hibernate and I am having some doubts .... in this example site: link we have the post table with the ID and TITLE fields, we have the table tag also with the ID and TITLE fields and finally the ManyToMany table that...
asked by 30.01.2018 / 14:47
1
answer

Problem performing a select with JPA

I'm facing a bug that I can not figure out a solution to. When I perform a persist and then select the received and normal result, but when performing an update and after that the select instead of displaying the updated result the result of...
asked by 27.12.2017 / 18:10
1
answer

Factory error using @Embeddable in JPA

I need to create a composite key on my system, after researching a little to find out that I should implement @Embeddable, until all right, I added the class in my system implementing the keys, but when I try to run the factory it indicates a pr...
asked by 11.01.2018 / 14:51