In addition, last night I created a trait for your model companion
object so that you have easy access to all the DAO methods. Since I
don't know what's idiomatic to Play and what's not, I need some help
testing and adapting this trait. In addition, I am hoping it can fix
some stubborn class cast exceptions people are getting when Play
reloads the view.
Then update to the latest 0.0.8-SNAPSHOT and give it a try.
Please let me know how I can improve ModelCompanion to make more
useful tools for people using Play 2.0.
Thanks,
Rose
Leon Radley
unread,
Apr 16, 2012, 10:50:46 AM4/16/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala...@googlegroups.com
Great work!
I'll have a try converting the salat plugin to use the new traits instead and see if i still get the problems with the class loader.
Should i use a custom context, that's the big question...
Wes Freeman
unread,
Apr 16, 2012, 11:10:19 AM4/16/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala...@googlegroups.com
Thanks for working on this, Rose and Leon. It would be great to have a fix/workaround on the Salat side, because I have a feeling Play will be a bit slower moving. I'd like to help out, too, but since I'm using the plugin it might be somewhat difficult to switch to using straight Salat--can you comment on that Leon? What would I do to use the latest snapshot?
I have a feeling Salat will experience a nice adoption rate because of Play 2.0, if it's a solid choice compared to Morphia/others.
Leon Radley
unread,
Apr 16, 2012, 1:45:38 PM4/16/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala...@googlegroups.com
I'm going to do some tests and see if I get the class loader errors. and if not, I'll probably update to wiki / plugin to use this new way of working, since it's more in tune with how the anorm plugin looks.
I'll post back here as soon as I've got some new info.
rose katherine toomey
unread,
Apr 16, 2012, 1:46:47 PM4/16/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala...@googlegroups.com
Thanks, Leon! I'm happy to make any changes or add any methods to the companion object trait to bring it more into line with idiomatic Play usage.
Leon Radley
unread,
Apr 16, 2012, 2:34:42 PM4/16/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala...@googlegroups.com
the new code doesn't seem to be in the maven repo.
Have you published the code?
On Monday, April 16, 2012 4:40:23 PM UTC+2, rktoomey wrote:
On Monday, April 16, 2012 4:40:23 PM UTC+2, rktoomey wrote:
On Monday, April 16, 2012 4:40:23 PM UTC+2, rktoomey wrote:
rose katherine toomey
unread,
Apr 16, 2012, 2:49:18 PM4/16/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message