Skip to content
Snippets Groups Projects
Commit 71a26d3a authored by Goik Martin's avatar Goik Martin
Browse files

cosmetics

parent 5afcfdf0
No related branches found
No related tags found
No related merge requests found
......@@ -24,10 +24,11 @@ public class EntityTest {
final EntityManagerFactory factory = Persistence.createEntityManagerFactory(CreateEntity.PERSISTENCE_UNIT_NAME);
final EntityManager em = factory.createEntityManager();
Long id;
final String airlineName = "Lufthansa",
icaoCode = "DLH";
final Long id; // Will be initialized by database generated primary key value.
em.getTransaction().begin(); // Creating and storing an entity
{
final Airline lh = new Airline(airlineName, icaoCode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment