macro annotation to mark a class as a persistent component. creates a
companion object for the class that extends PType. if the class already has a companion object, then adds a parent
class PType to the existing companion object. Note that
this will not work if your companion object already extends an abstract
or concrete class, as PType 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 PType. if the class already has a companion object, then adds a parent class
PType
to the existing companion object. Note that this will not work if your companion object already extends an abstract or concrete class, asPType
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".