Issue Details (XML | Word | Printable)

Key: ANN-469
Type: Improvement Improvement
Status: Open Open
Priority: Critical Critical
Assignee: Unassigned
Reporter: Amir Pashazadeh
Votes: 18
Watchers: 11
Operations

If you were logged in you would be able to see more operations.
Hibernate Annotations

bulk update with native sql queries

Created: 18/Oct/06 08:01 PM   Updated: 26/Sep/07 10:31 PM
Component/s: binder
Affects Version/s: 3.2.0.ga
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Duplicate
 
Relates
 


 Description  « Hide
Hibernate Annotations 3.2 does not support bulk update/deletes using native queries,

if I have something like:

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

in one of my entities, 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)

------

I made a mistake and I reported this issue as HHH-2147 as an issue about Hibernate core! :(



 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Alex Marshall added a comment - 16/Jul/07 09:46 AM
Is there going to be any progress on this ? Because I could really use this feature in Hibernate Annotations

Diego Plentz added a comment - 16/Jul/07 10:13 AM
The fastest way to have that feature is to provide a patch :-)