-->
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: Can i delete an object based on his reference
PostPosted: Tue Sep 11, 2007 1:53 pm 
Regular
Regular

Joined: Wed May 02, 2007 2:42 pm
Posts: 101
Hey,

I am working with Jboss 4.2 (JPA ).

when i try to execute the following query:
Code:
delete from DeviceConfigurationElements a where a.deviceDescriptor.macAddress = '02-00-4C-4F-4F-50'


I get an exception of sql syntax error , because it generate the following query:

Code:
20:52:23,804 INFO  [STDOUT] Hibernate: delete from DeviceConfigurationElements, DeviceDescriptor devicedesc1_ where macaddress='02-00-4C-4F-4F-50'

20:52:23,819 WARN  [JDBCExceptionReporter] SQL Error: 1064, SQLState: 42000

20:52:23,819 ERROR [JDBCExceptionReporter] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right sy

ntax to use near 'where macaddress='02-00-4C-4F-4F-50'' at line 1


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.