macro annotation to mark a class as a persistent component. creates a
companion object for the class that extends CType. if the class already has a companion object, then adds a parent
class CType to the existing companion object. Note that this will not
work if your companion object already extends an abstract or concrete class,
as CType itself is an abstract class. if this
happens, you will see a compiler error such as "class Foo needs to be a trait
to be mixed in".
macro annotation to mark a class as a persistent component. creates a companion object for the class that extends CType. if the class already has a companion object, then adds a parent class
CType
to the existing companion object. Note that this will not work if your companion object already extends an abstract or concrete class, asCType
itself is an abstract class. if this happens, you will see a compiler error such as "class Foo needs to be a trait to be mixed in".