This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin 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
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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: 20356
111
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
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!