How to use @PersistentCapable annotation in Scala 2.8

Posted by Gero on Stack Overflow See other posts from Stack Overflow or by Gero
Published on 2010-06-03T06:51:57Z Indexed on 2010/06/03 6:54 UTC
Read the original article Hit count: 354

Filed under:
|
|

Hi,

I'm switching from Scala 2.7.7 to Scala 2.8.0RC3 and now a few of my classes don't compile anymore. The problem is in the @PersistentCapable annotation:

import javax.jdo.annotations._
import java.util.Date

@PersistenceCapable{identityType=IdentityType.APPLICATION}
class Counter(dt: Date, cName: String, vl: int) {
 <.. snip ..> 
}

This code results in the following compilation errors:

[ERROR] /Users/gero/prive/kiva/kivanotify-gae/src/main/scala/net/vermaas/kivanotify/model/LoanProcessed.scala:7: error: expected start of definition
[INFO] @PersistenceCapable{val identityType = IdentityType.APPLICATION}

I already tried a couple of variations, did some Googling but without luck. Any ideas on how I can use the @PersistentCapable annotation with Scala 2.8.0 RC3?

Thanks, Gero

© Stack Overflow or respective owner

Related posts about annotations

Related posts about jdo