Hai Friends
I am working with Hibernate 3.0 and my DataBase is MS SQL 2000
I have a class called Contact and there are two classes which extends this class,these are called ContactAddress,ContactQualification.I am using table per subclass stratergy.
My problem is i want to retrieve all the information to a particular ID along with the subclasses data also.Can anyone help me
I have written the query like this
session.createQuery("from com.yash.hibernate.Contact as contact where contact.id = :fname").setParameter("fname", new Integer(2));
Is this right ? any changes i have to made. ?
Please help me i am in pressure to sovle this one.
Thanks in Advance.
|