Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.42 KB | None | 0 0
  1. trait PaymentableMapper[OwnerType <: PaymentableMapper[OwnerType]] extends LongKeyedMapper[OwnerType] {
  2.     self: OwnerType =>
  3.     def paid: Unit
  4. }
  5.  
  6. trait PaymentableMetaMapper[OwnerType <: PaymentableMapper[OwnerType]] extends LongKeyedMetaMapper[OwnerType] {
  7.     self: OwnerType =>
  8. }
  9.  
  10.  
  11. class Payment extends LongKeyedMapper[Payment] with IdPK {
  12.     object paymentable extends MappedLongForeignKey(this, PaymentableMetaMapper)
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement