Good morning guys!
I have the following entities:
package br.com.sistema.entidade;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistenc...
I have two classes, Terminal (which is the parent) and Portaria (child).
I'm using JPA and it's working, but it has a bug that I can not resolve.
I load a list of Terminal and when testing t.getPortarias() it...
I have a JavaFX application with Hibernate (JPA).
In this application I update a TableView with the data I search from BD (MySql).
Whenever I click on the system to fetch some data in the DB, it executes the following code:
public Task&l...
I have a Maven project and I'm having problems at the moment of generating the Database, I'm using Hibernate and Glassfish 4.
No error is generated, simply the database is not generated, I'm new to Maven I may be forgetting some additional co...
I have the following classificacao field in a table.
This field is populated elsewhere and is filled with only 'P' or 'N' , acronyms for Positive and Negative .
I then created enum Java.
Classification.java
p...
For a specific reason, I need to map object-relational (JPA) of my entities with XML.
[Unfortunately,] I can not use annotations to do this. It turns out that on certain properties I need to use Hibernate-specific features. For example, extra la...
Well, I have to update the version of hibernate that I was already trying to implement in my project to avoid bugs of the previous version, but I'm having a hard time persisting in the new version, since there were changes. >
The first...
Foreign key is writing as null. I have done several searches I could not find a solution. You could help me find my mistake. This is an example that I researched on the internet, if I can get the foreign key in the bank popular, I can do with th...