Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 494583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:30:35+00:00 2026-05-13T05:30:35+00:00

I am using JDK 1.6.0_16, and Scala 2.7.7, compiling with maven. I do mvn

  • 0

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

I do mvn clean compile and I get four errors, but they are identical, in different models:

[ERROR]
C:\Users\owner\workspace\ResumeApp\src\main\scala\jblack\resumeapp\lift\
model\ContactInfoModel.scala:13:
error: illegal inheritance;

[INFO] self-type
jblack.resumeapp.lift.model.ContactInfoModel
does not conform to
net.liftweb.mapper.CRUDify[Long,jblack.resumeapp.lift.model.ContactInfoModel]
‘s selftype
net.liftweb.mapper.CRUDify[Long,jblack.resumeapp.lift.model.ContactI
nfoModel] with
jblack.resumeapp.lift.model.ContactInfoModel
with net.liftweb.map
per.KeyedMetaMapper[Long,jblack.resumeapp.lift.model.ContactInfoModel]

[INFO] with CRUDify[Long,
ContactInfoModel] {

And this is my code:

package jblack.resumeapp.lift.model

import net.liftweb.mapper._

object ContactInfoMetaData 
    extends ContactInfoModel 
        with KeyedMetaMapper[Long, ContactInfoModel] {
    override def dbTableName = "contactinfo"
    override def fieldOrder = List(key, data, display) 
}
class ContactInfoModel 
    extends KeyedMapper[Long, ContactInfoModel] 
        with CRUDify[Long, ContactInfoModel] {
    def getSingleton = ContactInfoMetaData
    def primaryKeyField = id

    object id extends MappedLongIndex(this)
    object key extends MappedString(this, 100)
    object data extends MappedString(this, 100)
    object display extends MappedBoolean(this)
}

I am not certain what I am doing wrong.

Unfortunately, because I installed the nightly plugin, into Eclipse, I can’t install IDE 2.7.7, so I can only compile this with maven.

Is there a problem with how I am using CRUDify?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:30:35+00:00Added an answer on May 13, 2026 at 5:30 am

    CRUDify in lift-1.1 needs to be mixed into the MetaMapper object instead of the Mapper class. So it should work with this code instead:

    package jblack.resumeapp.lift.model
    
    import net.liftweb.mapper._
    
    object ContactInfoMetaData 
        extends ContactInfoModel 
            with KeyedMetaMapper[Long, ContactInfoModel]
            with CRUDify[Long, ContactInfoModel] {
        override def dbTableName = "contactinfo"
        override def fieldOrder = List(key, data, display) 
    }
    class ContactInfoModel 
        extends KeyedMapper[Long, ContactInfoModel] {
        def getSingleton = ContactInfoMetaData
        def primaryKeyField = id
    
        object id extends MappedLongIndex(this)
        object key extends MappedString(this, 100)
        object data extends MappedString(this, 100)
        object display extends MappedBoolean(this)
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using maven, when I click some method of JDK from Eclipse, I
Working on my 1.6.0_16 JDK, I generated my stub classes from a WSDL using
I'm using Ant to compile Java.The project has to be compiled using JDK 1.5
I am using maven 2.2.1, jdk 1.6.0_23 (64 bit) on a 64 bit windows
I'm using ant to generate javadocs, but get this exception over and over -
I am using JDK 1.6.0.18 for my Swing application. I am experiencing very different
I'm using intelliJ IDEA version 9.0.1 build #IU 93.94 with JDK 1.6.0_17. This error
This is using the Backberry JDK (5.0 if needed). I have a custom Manager
I am using JAXB 2.0 JDK 6 in order to unmarshall an XML instance
I have a relatively simple class. I serialize it using JDK 1.7 on my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.