aselab / scala-activerecord

ActiveRecord-like ORM library for Scala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Override Id type

binkabir opened this issue · comments

Hi, how can I override the id type of the ActiveRecord extended object from "long" to either "string" or "UUID"?

You can use ActiveRecordBase and ActiveRecordBaseCompanion classes to do it.
A sample code is here.

Thanks, it worked very fine