Upgrade from 1.0 to 1.1

3 views
Skip to first unread message

Rob Dawson

unread,
Nov 1, 2010, 12:07:23 AM11/1/10
to play-fr...@googlegroups.com
Hi guys,

I just did the upgrade from 1.0 to 1.1. I'll be revisiting this in a while, but the first pass was relatively straight forward.

I had to make the following changes:

1) do the changes from JPASupport to GenericModel
GenericModel.JPAQuery instead of JPASupport.JPAQuery
GenericModel instead of JPASupport

2) We have a custom plugin for doing JSON deserialization. The bind method that we were overriding has had it's method signature change. Here are the changes.

update bind
old -> public Object bind(String name, Class cls, Type type, Map<String, String[]> params) {
new -> public Object bind(String name, Class cls, Type type, Annotation[] annotations, Map<String, String[]> params) {

I'll let you know as we progress, but thought it might be worth sharing this with the list.

Cheers,

Rob

GrailsDeveloper

unread,
Nov 1, 2010, 3:09:57 AM11/1/10
to play-framework
>I'll let you know as we progress, but thought it might be worth sharing this with the list.
Thanks for the information!
Niels

Nicolas Leroux

unread,
Nov 1, 2010, 4:45:30 AM11/1/10
to play-fr...@googlegroups.com
Nice to know, thanks for sharing. If anyone else wants to share his experience, he is more than welcome.

Nicolas

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

Philippe Gauthier

unread,
Nov 1, 2010, 10:09:58 AM11/1/10
to play-framework
Well, I had a customized CRUD module and in templates there was
references to the "id" property on JPASupport instances.
Now in 1.1 its "_key()" on GenericModel instances.
I still have some troubles to investigate when I got time.

Ivan San José García

unread,
Nov 1, 2010, 12:22:43 PM11/1/10
to play-fr...@googlegroups.com
In Play! 1.1 the form tag includes automatically the authencity token.
If you in Play! 1.0 did that:
#{form @AutoescuelaController.bajaAlumno(), id: 'deleteAlumnoForm'}
#{authenticityToken /}

Now, in 1.1, authtencityToken will be appears twice.

2010/11/1 Philippe Gauthier <gauthi...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages