Have you checked the DTD?
http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd
Looks like the answer is no if you are only talking about mapping. Since you are allowed to put custom SQL in queries you might be able to reference a sequence or at least do a stored procedure where you can do some of this one-off logic. Chris
ps. If you are using a generator, which is unique, then why do you need it in a composite key or parameter? Just make that the ID for hibernate, even though you might use it in a composite key in the DB...