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.  [ 1 post ] 
Author Message
 Post subject: derby databse connection in Hibernate
PostPosted: Tue Feb 12, 2008 3:02 am 
Newbie

Joined: Sat Feb 09, 2008 1:43 am
Posts: 3
Location: Sri Lanka
I try to connect derby database using derby. bout i got error like this

Code:

Exception in thread "main" org.hibernate.hql.ast.QuerySyntaxException: userinfo is not mapped [from userinfo]



my derby database create query is:

Code:

create table userinfo( id int primary key, uname varchar(12),
          pass varchar(12));



Hibernate mapping code is:
Code:
<hibernate-mapping>
<class name="com.test.Userinfo" table="USERINFO">
<id name="id" column="ID">
<generator class="native"/>
</id>
<property name="uname" column="UNAME"/>
<property name="pass" column="PASS"/>
</class>
</hibernate-mapping>


why I'm I got error like that?
If u can Plz help me. Thank you.


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

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.