valchkou / cassandra-driver-mapping

JPA addon for DataStax Java Driver for Cassandra
58 stars 24 forks source link

How to turn off auto UUID generation #43

Closed DBatOWL closed 9 years ago

DBatOWL commented 9 years ago

Just saw the change for auto generation of UUID and I can't see a way to disable it. There are cases where the UUID value is used in other data structures within our app and we have relied on null UUIDs being an error indicating we missed something. I would rather continue to have the option of seeing errors then have them hidden with this feature.

valchkou commented 9 years ago

DBatOWL, I appreciate your feedback. I will switch default - no auto generate, as it was. autogenerate should be forced. Fix will be available tomorrrow

valchkou commented 9 years ago

fixed. Default behavior is not to auto generate value. Autogen turned on only if id property annotated as @GeneratedValue