Hi all,
I´m trying to make a bulk insert using a insert into ... select statement.
When i´m trying to run the query it can´t find the the properties of the composite id, anyone have an idea?
Code:
Query sqlQuery = this.getSession().createQuery(
"INSERT INTO MppAddressList(comp_id.addressId)" +
"SELECT lst.comp_id.addressId "+
"FROM UserAddressList lst");
The addressId property is a property inside a MppAddressListPK object that represents the composite Id in my object MppAddressList with the name comp_id.
It sends an error that it can´t find the property addressId.
I´m using the hibernate 3.2.5.ga and Oracle.
Anyone can help??
cheers