-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: INSERT INTO...SELECT problem
PostPosted: Fri Jan 18, 2008 12:32 pm 
Newbie

Joined: Fri Oct 06, 2006 10:10 am
Posts: 7
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.