[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2147) bulk update with native sql queries

Amir Pashazadeh (JIRA) noreply at atlassian.com
Wed Oct 18 20:57:25 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2147?page=comments#action_24877 ] 

Amir Pashazadeh commented on HHH-2147:
--------------------------------------

Oops! sorry, the problem was with Hibernate Annotations 3.2 (even GA version), and I'm not sure about the core!

if I have something like

@NamedNativeQuery(name = "testQuery", query = "delete from tb_test where id = ?")

in my entity, there will be following exception during build of SessionFactory:

Exception in thread "main" org.hibernate.cfg.NotYetImplementedException: Pure native scalar queries are not yet supported
	at org.hibernate.cfg.annotations.QueryBinder.bindNativeQuery(QueryBinder.java:118)
	at org.hibernate.cfg.annotations.QueryBinder.bindNativeQueries(QueryBinder.java:197)
	at org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinder.java:281)
	at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:404)
	at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:452)
	at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:268)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1210)



> bulk update with native sql queries
> -----------------------------------
>
>          Key: HHH-2147
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2147
>      Project: Hibernate3
>         Type: Improvement

>   Components: query-sql, core
>     Versions: 3.2.0.cr4
>     Reporter: Amir Pashazadeh
>     Priority: Critical

>
>
> Hibernate does not supports bulk update/deletes with native sql queries.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list