sullivan- on master
add missing date in changelog (compare)
ObjectIdclass is provided by the MongoDB driver, which is an optional dependency, and the way longevity is currently written, it's pretty hard to support
ObjectIdcolumns without making the MongoDB driver a hard dependency. But, yeah, you can generate an
ObjectIdwithin the JVM which is pretty much guaranteed to be unique, and this would be the recommended approach.
ObjectIdwithout having to include that driver as a hard dependency - the user would just have to supply an implicit
shapeless.Generic[ObjectId]- or something like that.
updatedtimestamps from within the model. I’ve been maintaing my own timestamps but would be so cool if I could just reuse the ones already maintained by the framework.
writeTimestampsconfiguration) are for diagnostic purposes only, and are not part of your domain model. If you have timestamps in your domain model, you are doing the right thing by adding them in. The idea here is to not conflate persistence concerns and domain model design. For more discussion on this please see http://scabl.blogspot.com/2015/03/aeddd-3.html and http://scabl.blogspot.com/2015/03/aeddd-4.html
$inc, for instance. Or if you’re in SQLite, then allow you to do native SQL queries. Some food for thought… :)
case classinstance. I am sure there’s a utility in longevity to do this conversion, but what I am not sure is if that’s exposed or not, or if I should be using it or not :)