I've found a problem with Hibernate and composite key with one of its column auto incremented.
I'm using MySQL and primary key composed of 2 columns, GID and LANG. GID column is set as AUTO_INCREMENT. Insert is working, hibernate inserts new row, MySQL adds auto_generated id when GID is null. However, Hibernate doesn't set the GID field in object given to persist.
I've heard of problems generally connected with using composite primary key with hibernate, so I'm asking if this is a bug in hibernate, or an anti-feature left with premeditation by developers (will not be implemented because not)?