hi to every one!
i'm using HQL right now for my queries but I have tried to use Criteria Query Api. I just like to learn a bit from it...
But here is the problem. I have a "hibernate.cfg.xml" file that has these proporties:
hibernate.connection.driver_class hibernate.connection.url hibernate.connection.username hibernate.connection.password hibernate.connection.pool_size show_sql dialect
after these proporties, I have a mapping resource as:
<mapping resource="deneme/cities.hbm.xml" />
I would like to ask you that: when we are creating a criteria query as:
List list = sess.createCriteria(Order.class) .add(Restrictions.between(lower,upper) .list();
we are writing class name "Order.class". But in my hibernate.cfg.xml I made my mappings to mapping resource and I really don't know what to write between these:
List list = sess.createCriteria(?????)
thx for helps
|