• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate newbie -->hbm2java not working, help

 
Thomas Mcfarrow
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am a newbie to hibernate and I am having problems when using HBM2Java.

I don't hava a config file.... not sure the format of this file either.


C:\hibernate extensions\tools\bin>hbm2java Project.hbm.xml
Aug 5, 2004 12:39:55 PM net.sf.hibernate.tool.hbm2java.Generator generate
INFO: Generating 1 in generated
java.lang.NullPointerException
at net.sf.hibernate.tool.hbm2java.BasicRenderer.isPropertySet(BasicRende
rer.java:611)
at net.sf.hibernate.tool.hbm2java.BasicRenderer.generateConcreteEmptyCla
sses(BasicRenderer.java:332)
at net.sf.hibernate.tool.hbm2java.BasicRenderer.render(BasicRenderer.jav
a:59)
at net.sf.hibernate.tool.hbm2java.Generator.write(Generator.java:138)
at net.sf.hibernate.tool.hbm2java.Generator.writeRecur(Generator.java:11
5)
at net.sf.hibernate.tool.hbm2java.Generator.generate(Generator.java:104)

at net.sf.hibernate.tool.hbm2java.CodeGenerator.main(CodeGenerator.java:
125)


Thanks!
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!