-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Strange problem with JPA implementation with Hibernate
PostPosted: Sat Sep 05, 2009 11:23 am 
Newbie

Joined: Fri Sep 04, 2009 10:04 am
Posts: 10
hi,

I am getting a strange problem with the Hibernate implementation over JPA,

The steps that I followed are

1) I created a persistence.xml, with the persistence unit and entity classes and I used Hibernate cache provider in properties
2) My entity class cotains two classes, Instrument and Inventory
3) I execute the application my application hass successfully created all two tables in DB
4)I dropped those two tables from DB
5)I evedn deleted those two entity classes from persitence.xml
6)Now I added the new entity class called Experiment
7)I just cleaned all my application files and every thing
8)I built the application again
9)Now the strange problem comes in to the picture
10)My application has created table but the count is three, including my previous two tables.

I deleted all of the entries belong to those two tables, but how it has created those two table. can any one help me in this issue.


Top
 Profile  
 
 Post subject: Re: Strange problem with JPA implementation with Hibernate
PostPosted: Sat Sep 05, 2009 3:42 pm 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
The count is three? The count of what? The number of tables you have? What are their names?

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
 Post subject: Re: Strange problem with JPA implementation with Hibernate
PostPosted: Sun Sep 06, 2009 11:49 pm 
Newbie

Joined: Fri Sep 04, 2009 10:04 am
Posts: 10
Three means it has created three tables, with names Instrument and Inventory
and Experiment, but I have deleted the entries of Instrument and Inventory from persistence.xml, then also they are getting created along with my Experiment table


Top
 Profile  
 
 Post subject: Re: Strange problem with JPA implementation with Hibernate
PostPosted: Mon Sep 07, 2009 7:47 am 
Expert
Expert

Joined: Tue May 13, 2008 3:42 pm
Posts: 919
Location: Toronto & Ajax Ontario www.hibernatemadeeasy.com
Rebuild and recompile. Maybe it's picking up old versions of the classes?

_________________
Cameron McKenzie - Author of "Hibernate Made Easy" and "What is WebSphere?"
http://www.TheBookOnHibernate.com Check out my 'easy to follow' Hibernate & JPA Tutorials


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.