As you know, there are twi imp xml files, hibernate.cfg.xml and the
classname.xml ..

the classname.xml stores the class variables ,methods including
getter-setter methods.

First wrie all the things in classname.xml(after creation of
classname.java).the classname.xml maps the class variable with the
table column name...

Next, hibernate.cfg.xml maps the classes(here classname.xml ) with the
location and other dependent class files...Here we define connection
settings,etc.

Read -> the hibernate  tutorial on hibernate website.....

Lastly, don't forget to define the session factory class also..after
that , define a method in
classname.xml to create objects of itself and define the method to add
or delete the created objects.

eclipse has an easu gui based interface for all these sultry
things...so don't worry,its easy...

I used eclipse plugin of hibernate tools v3.2 ...

lastly, follow the help file for hibernate in eclipse..

Thanks ...you refreshed my memory.I am learning myself..

Regards,
Jitesh Dundas


On 5/30/10, Kunal Raikar <kunal...@gmail.com> wrote:
> I am new to Hibernate. I want to know how to convert SQL query into
> hibernate mapping so that I can make use of hbm.xml file instead making use
> of manual sql query.
>
> Is there any converter through which we directly convert sql query into
> hbm.xml mapping
>
> --
> Warm regards
> Kunal
>
> --
> You received this message because you are subscribed to the Google
> Groups "Java EE (J2EE) Programming with Passion!" group.
> To post to this group, send email to
> java-ee-j2ee-programming-with-passion@googlegroups.com
> To unsubscribe from this group, send email to
> java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to