Win a copy of Microservices in Action this week in the Web Services forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

create to generate table through hibernate  RSS feed

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

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_____________________________________________
 
Bartender
Posts: 19996
95
Android Eclipse IDE Linux
  • 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
Greenhorn
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.

jar-files.PNG
[Thumbnail for jar-files.PNG]
Jar file used for the program
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!