Hi,
Working on supporting a legacy database with Hiberante 3.0 RC1. The database uses a lot of bitfield columns which means a lot of our queries rely on binary & and binary | working. This used to work fine in Hibernate 2.1.x but now dies in Hibernate 3.x with "unexpected char: '&'" errors.
A typical query would look something like this
"select UserProfile u where status & 1 = 1"
Note that all this is running on PostgreSQL which does support such an operator.
Is it likely that Hibernate 3.x HQL will support bitwise operators? Or is there a better way of dealing with legacy databases with these types of columnes? Possibly an EnumSet?
Thanks,
Dan
|