Problem with HQL UPDATE

hi i have folwing HQL query for updating a table but it doesnt run

would b great if somone can help urgent thanks

session.createQuery("update BusRefAccessValues brav set brav.busRefAccessEndDate =:currentdate"

+" where brav.id.busRefId =:busrefid"

+" and brav.id.busRefAccessLabel='CLIENT UNIT NUMBER'"

+" and (brav.id.busRefAccessEffDate is null or "

+"brav.id.busRefAccessEffDate < current_date())"

+" and (brav.busRefAccessEndDate is null or "

+"brav.busRefAccessEndDate > current_date())");

query.setDate("currentdate",new Date ());

query.setInteger("busrefid", brmf.getBusRefId());

int rowcount = query.executeUpdate();

[1006 byte] By [swamy_suna] at [2007-11-27 5:05:22]
# 1
This has actually nothing to do with JDBC. Hibernate has it's own forum: http://forums.hibernate.orgAnyway:> but it doesnt run Please be specific.
BalusCa at 2007-7-12 10:23:50 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
ru commiting the Transaction there ?what value does rowcount return ?
RahulSharnaa at 2007-7-12 10:23:50 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
Hello,Are using java.sql.Date? I've had some issues with that before. Try using Calendar to get your dates.Quick question for you: What is brav.id.busRefId and similar fields?
kdajania at 2007-7-12 10:23:50 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 4
Those are just DTO's. Never worked with Hibernate before?
BalusCa at 2007-7-12 10:23:50 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 5
I have, just never used that.
kdajania at 2007-7-12 10:23:50 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...