Questions tagged as 'jpa'

1
answer

Problems in netbeans with connection to Postgres

I have a database called BANK_DE_TESTES in Postgres and it has some random tables. In netbeans when I try to use the Master / Detail Samples Form to use JPA to create a simple crud it does not work saying that the bank I have specified does not...
asked by 19.12.2015 / 19:49
2
answers

Select JPA and Hibernate

I have five entities (Quotation, Sector, Partner, Items and Leads), where the user will select a quotation and sector and the list of all items related to this sector will appear along with the items that have already been posted ( if any). I...
asked by 21.08.2015 / 04:36
1
answer

Difference between Merge () and getInstace () in JPA / Hibernate

I would like to know when to use merge() to update the object instead of changing it through your reference. Example: Produto p = new Produto(); p.setNome("Bola"); p.setvalor("32); manager.persist(p); manager.getTransation().begin();...
asked by 24.04.2015 / 19:04
1
answer

Update all schemas with multitenancy architecture

Good morning. Next, I have a multitenancy application using Hibernate with JPA. We recently deployed the multitenancy architecture and in persistence.xml was configured to automatically update the default schema when deployed to the project,...
asked by 16.02.2015 / 12:55
1
answer

How to do custom query with JPA + Hibernate

Hello, I would like to know an elegant way to make a custom query using JPA . Basically I want to run the query and return it to an object list, but usually it will be a query with N tables and only with the fields I will need. I und...
asked by 15.01.2015 / 18:59
1
answer

Problem with table extension in Postgresql, Person and Physical Person

I'm making an application that has a people register, it's a Person CRUD that can be both physical and legal. the problem is that in my design a Pessoa and a Pessoa Fisica should be created in the database, but it is creating only...
asked by 20.04.2014 / 03:32
1
answer

Client side object instance deleted and sent to server

I would like to know if anyone has already had this problem and how to resolve it. I'm using JSP and Spring Data JPA. Deleto records the middle of a form that is a detail using Javascript, right? But when I give a POST, the server creates...
asked by 07.01.2015 / 19:44
1
answer

Hibernate Initialization

Is it possible to disable the check that Hibernate does every time the app starts? That is, the moment I create the table classes and the hedge columns, it is normal that the first time the app runs hibernate create the tables according to en...
asked by 29.09.2014 / 23:27
2
answers

How do I select in specific columns and continue to get a list of the entity and not an array of Object?

Having the following class: public class Usuario { private Integer id; private Email email; private String nome; private String sobrenome; private String senha; private String usuario;...
asked by 30.01.2018 / 10:10
1
answer

WildFly 11 does not recognize MySQL driver when deploying

I set up my Java Web project to use JTA when transacting with the Database. My project has 4 Maven modules, one is unique to the model classes and to the persistence layer. When I compile in Maven the result is success, but when trying to upload...
asked by 09.02.2018 / 03:07