Hello,
I am trying to do a query using:
Product lProduct= (Product)this.mSession.load(Product.class, id);
Id field being the primary key
This does not return anything.
However, this Query query = this.mSession.createQuery("from Product"); returns all values.
I have show_sql turned on.
For the first statement is shows something similar to:
Hibernate: select product0_.productCode as productC1_1_, product0_.productName as productN2_1_, product0_.productLine as productL3_1_, product0_.productScale as productS4_1_, product0_.productVendor as productV5_1_, product0_.productDescription as productD6_1_, product0_.quantityInStock as quantity7_1_, product0_.buyPrice as buyPrice1_, product0_.MSRP as MSRP1_ from classicmodels.products product0_ WHERE .productID=?
It does not seem to populate the parameter.
Can anyone provide any troubleshooting techniques?
Thanks in advance,
Kevin
|