Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

create to generate table through hibernate

 
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_____________________________________________
 
Saloon Keeper
Posts: 22246
151
Android Eclipse IDE Tomcat Server Redhat Java 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
 
We can walk to school together. And we can both read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic