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.