-
1. Re: kitchensink quickstart: Member entity not @Portable?
csa Jun 23, 2013 3:59 PM (in response to umk)Hi Clinton,
That's correct. Classes need to be annotated with @Portable to send objects across the wire (the only alternative is to configure these classes in ErraiApp.properties using this property: errai.marshalling.serializableTypes=...).
However, in case of the kitchensink quickstart, I see the @Portable annotation on the Member class in both the standard and cordova kitchensink:
Which version of the kitchensink quikstart did you use?
Cheers,
Christian
-
2. Re: kitchensink quickstart: Member entity not @Portable?
umk Jun 23, 2013 9:01 PM (in response to csa)Hi Christian,
Yeah, it did seem odd that @Portable is missing in the version I'm running and that the code actually works. Also, ErraiApp.properties has no reference to Member.
I'm following the documentation here where the version is 2.2.1.Final:
https://docs.jboss.org/author/display/ERRAI/Errai+Kitchen+Sink+Maven+Archetype
How is this possible?
Thanks!
-
3. Re: kitchensink quickstart: Member entity not @Portable?
csa Jun 24, 2013 11:27 AM (in response to umk)Hi Clinton.
I just build a demo app using 2.2.1.Final of the kitchensink archetype and the Member class was annoated with @Portable. Removing @Portable causes a runtime error "no marshalling definition available for type:foo.bar.client.shared.Member" which is as expected.
I assume that your build is not clean and you still have the marshaller generated from an earlier build. After doing a mvn clean gwt:run you should be seeing the same problem without @Portable.
Cheers,
Christian
-
4. Re: kitchensink quickstart: Member entity not @Portable?
umk Jun 24, 2013 12:28 PM (in response to csa)You are right. I noticed a comment at the top of my copy of Member: "Generated Jun 22, 2013 10:40:31 PM by Hibernate Tools 3.4.0.CR1". I must have somehow triggered a regen of the class while prototyping.
Appreciate your assistance!