Author | Message |
---|---|
xytian
Posts: 70
|
Posted 15:18 Apr 25, 2013 |
while running Hbm2ddl.java, I got an Exception in thread "main" java.lang.NullPointerException the source code is: 22 Configuration cfg = (new Ejb3Configuration()).configure( |
jrodriguez
Posts: 33
|
Posted 15:22 Apr 25, 2013 |
It could be "hibernate-example"
|
cysun
Posts: 2935
|
Posted 15:25 Apr 25, 2013 |
The name of the persistence unit in Hbm2ddl must match the name specified in persistence.xml. |
xytian
Posts: 70
|
Posted 16:09 Apr 25, 2013 |
It works now, thank you very much! |