Fix a bug of compare columns name for User entity

Add support to generate a Copy function for each entities