I'm trying to connect to postgresql , however, without success. My application will be a jsf application and so I'm using persistence.
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
xmlns="http://java.sun.com...
I'm using JPA for a webservice, and I'm using Merge to update, but it updates all my object values, is there any way to perform a partial update of it?
Example, only change values that are not null?
I have a problem here that says entitymanager is closed ... I took a look at the net to follow the same model, but here it is wrong ...
this is my entitymanager method
private EntityManager getEntityManager(){
EntityManagerFactory factory...
After much research, without success, I decided to post my doubts.
I'm using JPA / Hibernate and I have two tables: a Pessoa and a Funcionário .
The error occurs when I save my data, the foreign key pessoa_id is empty,...
The @Transient annotation serves to inform JPA that that attribute is not mapped to the table and / or should not be persisted.
In addition, after the entity that has annotated attributes with @Transient is persisted, these attributes...
I have the following query in the postgres database:
select * from trabalha_projeto tp inner join Empregado e on
e.matricula = tp.empregado
How does it transform it into a JPQL query?
I'm having a hard time returning values:
First: not...
Hello, I have an entity named menu on my system.
A menu can be a child of another menu and so on.
The table has the following structure:
Theentityismappedasfollows:@Entity@NamedQuery(name="Menu.findAll", query="SELECT m FROM Menu m")
public...
Well, how do I get the system started when the tables are created automatically? The way my system is, tables are only created when some kind of bank access is done. For example in the login screen just press the button log that the tables are c...
I'm using JPA and Hibernate 4.3.11 when running a simple application
To test the connection to Firebird 2.5 Hibernate is generating
A temporary table with the HT _ start.
Example:
created the Customer table and generated
Hiberna...
I have a problem with a cadastral panel.
There is a store network registry in which I am taking care of the implementation. I can normally insert and remove dataTable items, but this is not reflected in the base in the burning process - when...