Create entity class with Integer Id without auto-incremented value

Hi there,

please can someone tell me how to create an entity class with Integer Id (primary key) without having auto-incremented values for the ID?

I tried to use the BaseIntegerIdEntity but it creates automatically a value for the id.
When I try to create with such a class an entity with the EntityInspector it didn’t show the id property for editing - so I’m unable to set my own values.

Any help is appreciate…

Thanks
Steven

Hi Steven,

Try to use BaseGenericIdEntity as a base class for your entity. You can actually make a copy of BaseIntegerIdEntity, but as long as the class is different, the framework won’t assign ids automatically.