Is there a way to use Anorm like a regular ORM? I'd like to have a method that just inserts an element provided.
def insert[T](element: T)(implicit connection: Connection) = {
element.insert(connection)
}
I can definitely implement it by myself, but feels like I'm re-implementing an ORM... Old anorm version had this Magic[T] but I can't see it now
The documentation clearly states that Anorm is not an ORM (and will never be).
As indicated, to insert or update a
Tvalue, an instance of theToStatementtypeclass must be provided.Some macros are provided to automatically materialize such instance.