@GeneratedValue annotation support. Fixed exception handling in REST.