if ( i.getGeneratedValue() != null )
{
final JAnnotationUse gv = getter.annotate( cm.ref( javax.persistence.GeneratedValue.class ) );
if ( i.getGeneratedValue().getGenerator() != null )
{
gv.param( "generator", i.getGeneratedValue().getGenerator() );
}
if ( i.getGeneratedValue().getStrategy() != null )
{
gv.param( "strategy", javax.persistence.GenerationType.valueOf(
i.getGeneratedValue().getStrategy().value() ) );