Hi,
On Mon, Apr 20, 2009 at 10:16 PM, 刘浩 <[email protected]> wrote:
> Hi,
>
> Could anyone share the impelmentation of your JPA demo in GAE?
> Actually I encounter some problem during deploy them in GAE.
>
> a. The keys, GAE do not like Long as Key in OneToMany relation, So I use the
> Key type provided by GAE
> b. Model.mergeAndFlush(author) did not work as I expected. It could not
> update, and only do insert. So I changed the code
> if (author.id == null) {
> Model.persistAndFlush(author)
> } else {
> val tmp = Model.find(classOf[Author], author.id)
> tmp.get.name = author.name
> Model.mergeAndFlush(tmp.get)
> }
> I think it is some attach/detach problem.
Yes, I have also the same phenomenon, and I also have guessed that
there must be such an attache/detach problem.
Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Fax +81-22-224-8773
Skype callto://jcraft/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---