Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package kf;
- import javax.persistence.EntityManager;
- import javax.persistence.EntityManagerFactory;
- import javax.persistence.Persistence;
- /**
- *
- * @author Karol
- */
- public class NewMain {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- EntityManagerFactory emf = Persistence.createEntityManagerFactory("xxx");
- EntityManager em = emf.createEntityManager();
- NewEntity test = new NewEntity();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement