-->
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.  [ 4 posts ] 
Author Message
 Post subject: which version of Hibernate supports DML-style operations
PostPosted: Mon Aug 14, 2006 11:33 am 
Regular
Regular

Joined: Mon Sep 20, 2004 8:42 am
Posts: 58
Location: Boston, US
In which precise version of hibernate was "DML-style operations" added?

http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#batch-direct

I'm on 3.0.5 and a "insert" DML style query fails

Code:
Caused by: org.hibernate.hql.ast.QuerySyntaxError: unexpected token: insert near line 1, column 1 [insert into LaneGroupContent(laneGroup, lane) values (?, ?)]
        at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:63)
        at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:215)
        at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:127)
        at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
        at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:427)
        at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
        at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:865)
        at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:89)


I tried to access the Hibernate 3 change log

http://cvs.sourceforge.net/viewcvs.py/hibernate/Hibernate3/changelog.txt?only_with_tag=HEAD&view=markup

but the url is not accessible.

Thanks,
Sanjiv


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 14, 2006 12:31 pm 
Expert
Expert

Joined: Thu Sep 22, 2005 10:29 am
Posts: 285
Location: Almassera/Valencia/Spain/EU/Earth/Solar system/Milky Way/Local Group/Virgo Supercluster
INSERT DML-style: None.

Only UPDATE or DELETE.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 14, 2006 12:34 pm 
Regular
Regular

Joined: Mon Sep 20, 2004 8:42 am
Posts: 58
Location: Boston, US
Quote:
INSERT DML-style: None.


I'm not quite sure I follow. If you go to the link of the Hibernate doc provided in my first post, it mentions INSERT DML-Style hql queries.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 14, 2006 12:40 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes, since 3.1 we have had update,delete & insert DML.

_________________
Max
Don't forget to rate


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

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.