spring-data-couchbase icon indicating copy to clipboard operation
spring-data-couchbase copied to clipboard

[Feature Request] USE_METHOD strategy for id generation

Open JesusTheHun opened this issue 3 years ago • 2 comments

It would be nice to be able to use a method to generate the id instead of either the UUID or a set of attributes.

JesusTheHun avatar May 23 '22 19:05 JesusTheHun

There could be an extension to the @Generated annotation/converter to do that.

Otherwise, the id can be generated by any means and then set in the entity before conversion.

mikereiche avatar May 23 '22 20:05 mikereiche

Otherwise, the id can be generated by any means and then set in the entity before conversion.

Of course, we could do the same instead of using USE_ATTRIBUTES, it's just not convenient.

JesusTheHun avatar May 23 '22 20:05 JesusTheHun