• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
  • Carey Brown
  • salvin francis
  • Claude Moore

create to generate table through hibernate  RSS feed

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have an issue in creating auto generated table in hibernate. while executing the application,  inconsole window i am getting this.


after that when i check in oracle(11g) database i am not able to see the table creation.
Please help me in that.
Please see the snippet.




-______________________END OF CODE_____________________________________________
Saloon Keeper
Posts: 20635
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch, Sumit!

Your attempt to provide code markers is laudable, but our editor has a "Code" button that wraps special tags around code and it has the advantage that it keeps the message formatter from mangling your examples. I've added appropriate code tags to your examples.

As for the problem itself, I think that it's the "hibernate.properties not found" message in the stack trace. If I'm not mistaken, hibernate.properties is where you tell Hibernate to construct the database objects. And that by default (I hope!) it does not construct them automatically.

Beyond that, it appears that you are using legacy Hibernate and not Hibernate JPA. I don't know why you would do that, as JPA, unlike legacy Hibernate, is supported by the JEE standard, has several years of proven use behind it, and, as far as I know, it does everything legacy Hibernate did, including the option to dynamically create schema objects.
Sumit Shahu
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Tim,

Thanks for the update,

please see the attached document for the reference whether I am using correct jar file for this program or not.
if jar file is not correct then please advice what jar file to be used.

[Thumbnail for jar-files.PNG]
Jar file used for the program
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
Create Edit Print & Convert PDF Using Free API with Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!