Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
SquerylRecord ProtoUser - id method
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Etam  
View profile  
 More options Oct 1 2012, 6:47 am
From: Etam <odwrot...@gmail.com>
Date: Mon, 1 Oct 2012 03:47:13 -0700 (PDT)
Local: Mon, Oct 1 2012 6:47 am
Subject: SquerylRecord ProtoUser - id method

Hi,

how dou you use ProtoUser with Squeryl records?

There is a problem:

overriding lazy value id in trait *ProtoUser* of type
net.liftweb.record.field.LongField[domain.model.User];
[error]  *method id in trait KeyedRecord of type => Long needs `override'
modifier*

Thanks,
Etam.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Whittaker  
View profile  
 More options Oct 1 2012, 10:43 am
From: David Whittaker <d...@iradix.com>
Date: Mon, 1 Oct 2012 10:42:39 -0400
Local: Mon, Oct 1 2012 10:42 am
Subject: Re: [Lift] SquerylRecord ProtoUser - id method

Hi Etam,

For the moment, you don't.  Your best bet is to copy the ProtoUser code and
change it accordingly.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Etam  
View profile  
 More options Oct 1 2012, 3:35 pm
From: Etam <odwrot...@gmail.com>
Date: Mon, 1 Oct 2012 12:35:39 -0700 (PDT)
Local: Mon, Oct 1 2012 3:35 pm
Subject: Re: [Lift] SquerylRecord ProtoUser - id method

Hmmm :(, there is another problem:

[error] /etabl/src/main/scala/com/etabl/model/User.scala:14: overriding
type FieldPointerType in trait MetaMegaProtoUser, which equals
net.liftweb.mapper.MappedField[_, com.etabl.model.User.TheUserType];
[error]  type FieldPointerType in trait CRUDify, which equals
net.liftweb.mapper.MappedField[_, com.etabl.model.User] needs `override'
modifier;
[error]  other members with override errors are: computeFieldFromPointer,
buildFieldBridge, editPath, menus

while:

object User
  extends User
  with MetaMegaProtoUser[User]
  with CRUDify[Long, User] { ...

I had to change its name. This is a very dirty solution ;).

Thanks,
Etam.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Whittaker  
View profile  
 More options Oct 1 2012, 4:13 pm
From: David Whittaker <d...@iradix.com>
Date: Mon, 1 Oct 2012 16:13:13 -0400
Local: Mon, Oct 1 2012 4:13 pm
Subject: Re: [Lift] SquerylRecord ProtoUser - id method

I agree that it's dirty, but I don't see why you'd have issues with
override.  If you copy the code into your own project, you should be able
to just change the methods directly.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Etam  
View profile  
 More options Nov 14 2012, 1:02 pm
From: Etam <odwrot...@gmail.com>
Date: Wed, 14 Nov 2012 10:02:28 -0800 (PST)
Local: Wed, Nov 14 2012 1:02 pm
Subject: Re: [Lift] SquerylRecord ProtoUser - id method

Is it going to be fixed?

W dniu poniedziałek, 1 października 2012 22:13:57 UTC+2 użytkownik David
Whittaker napisał:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Whittaker  
View profile  
 More options Nov 14 2012, 2:45 pm
From: David Whittaker <d...@iradix.com>
Date: Wed, 14 Nov 2012 14:44:21 -0500
Local: Wed, Nov 14 2012 2:44 pm
Subject: Re: [Lift] SquerylRecord ProtoUser - id method

What in particular?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Etam  
View profile  
 More options Nov 15 2012, 4:24 am
From: Etam <odwrot...@gmail.com>
Date: Thu, 15 Nov 2012 01:24:29 -0800 (PST)
Local: Thurs, Nov 15 2012 4:24 am
Subject: Re: [Lift] SquerylRecord ProtoUser - id method

The ProtoUser class so you could be able to extend it with KeyedRecord from
SquerylRecord.

W dniu środa, 14 listopada 2012 20:45:07 UTC+1 użytkownik David Whittaker
napisał:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Whittaker  
View profile  
 More options Nov 15 2012, 10:15 am
From: David Whittaker <d...@iradix.com>
Date: Thu, 15 Nov 2012 10:14:22 -0500
Local: Thurs, Nov 15 2012 10:14 am
Subject: Re: [Lift] SquerylRecord ProtoUser - id method

I had considered refactoring ProtoUser so that it doesn't define an id
field.  Squeryl 0.9.6 will be more flexible about how primary keys are
defined though.  Right now, I'm leaning towards waiting until it's
released, then adding ProtoUser support to the SquerylRecord version based
on it.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »