Thursday 15 January 2015

Illegal inheritance compilation error using Scala 2.7.7 and LIFT 1.1-SNAPSHOT -


After

I am using JDK 1.6.0_16, and Scala 2.7.7, compiling with Maven.

I get mvn clean compilation and I get four errors, but they are similar, work in different models:

[ERROR] C : \ Users \ Master \ Vertical \ ResumeApp \ src \ Main \ Scala \ jblack \ resumeapp \ Lift \ Model \ ContactInfoModel.scala: 13: Error: Invalid Legacy;

[information] Self type jblack.resumeapp.lift.model.ContactInfoModel does not conform net.liftweb.mapper.CRUDify [long, jblack.resumeapp.lift.model.ContactInfoModel] with jblack.resumeapp selftype To net.liftweb.mapper.CRUDify [long, jblack.resumeapp.lift.model.ContactInfoModel] With net.liftweb.map per.KeyedMetaMapper lift.model.ContactInfoModel [Long, jblack.resumeapp.lift.model.ContactInfoModel]

[information CRUDify with] [Long, ContactInfoModel] {

And this is my code:

  package jblack.resumeapp.lift.model import ne t.liftweb.mapper._Office ContactInfoMetaData ContactInfoModel extension with KeyedMetaMapper [Long, ContactInfoModel ] {Override def dbTableName = "contactinfo" override def fieldOrder = list (key, data, display)} Square ContactInfoModel extends KeyedMapper [Long ContactInfoModel,] with CRUDify [Long, ContactInfoModel] {def getSingleton = ContactInfoMetaData def primaryKeyField = ID object id extends MappedLongIndex (it) object key extends MappedString (this, 100) object data extends MappedString (this, 100) object performance extends MappedBoolean (it)}  

I'm not sure whether I I am doing

Unfortunately, since I was founded in Eclipse night plugin, I can not install IDE 2.7.7, so I just compiled it with Maven.

Am I CRUDify ?

The Siarudeif lift -1.1 should be mixed in my TaMapper object instead Mapper class. So instead of this should work with the code:

  Package jblack.resumeapp.lift.model import net.liftweb.mapper._ objection ContactInfoMetaData extends KeyedMetaMapper with CRUDify [Long, ContactInfoModel] ContactInfoModel [Long, ContactInfoModel] {dbTableName def override = override def fieldOrder = list (key, data, display) "contactinfo"} Square ContactInfoModel extends KeyedMapper [Long, ContactInfoModel] {def getSingleton = ContactInfoMetaData def primaryKeyField = ID object ID extends MappedLongIndex ( This) object mapped string (it, 100) object data mapped string (it, 100) objects T display Maped bullion (this)} extends  
.

No comments:

Post a Comment