private void emitGetId ( JavaWriter javaWriter ) throws IOException { logger . d ( "emitGetId" ) ; javaWriter . beginMethod ( "long" , GET_ID_FUNCTION , EnumSet . of ( PUBLIC , STATIC ) , getTargetClass ( ) , "value" ) . emitStatement ( "return value.%s" , idColumn . getMemberName ( ) ) . endMethod ( ) ; }
Create a way to get an id for foreign keys