Blaze
unread,Oct 19, 2012, 9:46:16 AM10/19/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
HI all,
I have one question:
I like to use JPA EJB(actually its already done) backend and now to create a JS UI with gwt.
The problem comes when I want to use the domain pojo-s as a dto-s for the RPC because of the javax.persistance.*
annottaions in the pojo-s, the compiler asks for the source code when compailing to JS objects.
What would be the best solution to this?
1. I can create a new plain pojos from the old jpa domain pojos with exactly the same fields. Will alwasy work, but this looks like a overwork for noting, also in the project Ill send a list of 5-6000 pojos to the frontend, so Ill lose a O(n) time to recriate the new DTO-s.
2. If try to include the source code for javax.persistance.* will this work? Has someone tried this? I think most of them are having RETENTION=RUNTIME so the compiler shoud totaly dont care about them..but..
Any idea or expiriance on this?
Tnx,
Blaze