It is strange. I do not have the entries that you are saying in the  
pom.xml file, but I do not have them in the 1.0 neither. I have also  
created a project with archetype-basic and I have having the same  
error. This is the command I am using to create the project. Is it ok?

mvn archetype:generate -U -DarchetypeGroupId=net.liftweb - 
DarchetypeArtifactId=lift-archetype-basic -Dversion=1.1-SNAPSHOT - 
DremoteRepositories=http://scala-tools.org/repo-snapshots - 
DgroupId=com.tribes.ga -DartifactId=gaTribesServer-d0.1.1

Thanks,

GA


On Oct 15, 2009, at 5:35 PM, David Pollak wrote:

> I'm not sure what's going on.  This code worked for me in a brand  
> new archetype-basic 1.1-SNAPSHOT project.
>
> Please make sure the following entry is in your pom.xml file:
>
>
>     <dependency>
>       <groupId>net.liftweb</groupId>
>       <artifactId>lift-mapper</artifactId>
>       <version>1.1-SNAPSHOT</version>
>     </dependency>
>
>
> Thanks,
>
> David
>
> On Thu, Oct 15, 2009 at 8:27 AM, GA <my_li...@me.com> wrote:
> Here you have the complete model file.
>
> It is just a test class. The error I have is "Not found: Type IdPK".  
> I get it when I try to compile the file. Also NetBeans is showing  
> the error. The same file was working fine in Lift 1.0.
>
> I have created a new project based on the Lift snapshot 1.1  
> "archetype-blank" and then copied all my files from the previous  
> project. The original 1.0 project was created with the "archetype- 
> basic", could this be the source of the error?
>
> Thanks,
>
>
> package com.tribes.ga.model
>
> import net.liftweb._
> import mapper._
> import util._
> import scala.xml.{NodeSeq,Text}
> import _root_.java.text.{DateFormat,SimpleDateFormat}
>
> class Person extends LongKeyedMapper[Person] with IdPK {
>     def getSingleton = Person
>
>     object userName extends MappedString(this, 30)
>     object password extends MappedString(this, 30)
>     object firstName extends MappedString(this, 30)
>     object lastName extends MappedString(this, 30)
>     object email extends MappedString(this, 255)
>     object deviceName extends MappedString(this, 30)
>     object createdOn extends MappedDateTime(this)
>     object updatedOn extends MappedDateTime(this)
>     object createdBy extends MappedString(this, 25)
>     object updatedBy extends MappedString(this, 25)
>
>     def toXML: NodeSeq = {
>         val id = "http://www.gatribes.com/api/expense/"; + this.id
>         val formatter = new  SimpleDateFormat("yyyy-MM- 
> dd'T'HH:mm:ss'Z'")
>
>         <person>
>             <id>{id}</id>
>             <accountname>{getUserName(userName.is)}</accountname>
>             <firstName>{firstName.is}</firstName>
>             <lastName>{lastName.is}</lastName>
>         </person>
>     }
>
>     private def getUserName(userName: String): String = {
>         Person.find(By(Person.userName, userName)) match {
>             case Full(a) => a.userName
>             case _ => "No Account Name"
>         }
>     }
>
>
> }
>
> object Person extends Person with LongKeyedMetaMapper[Person]
>
>
>
> On Oct 15, 2009, at 5:04 PM, David Pollak wrote:
>
>> Can you post an example (complete file) of something's not working?
>>
>> On Thu, Oct 15, 2009 at 3:21 AM, GA <my_li...@me.com> wrote:
>>
>> Hello guys,
>>
>> I have a Lift project working perfectly in version 1.0, but when I
>> moved it to Lift 1.1 I am having errors with the Modeler with the  
>> type
>> IdPK. Any ideas?
>>
>> Thanks,
>>
>> GA
>>
>>
>>
>>
>>
>>
>> -- 
>> Lift, the simply functional web framework http://liftweb.net
>> Beginning Scala http://www.apress.com/book/view/1430219890
>> Follow me: http://twitter.com/dpp
>> Surf the harmonics
>>
>>
>
>
>
>
>
>
> -- 
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to