On 24 sep, 22:01, sheamus <[email protected]> wrote: > Hello - is it possible to set the id for a @DataTransferObject instead > of the jpa generated one? I'm using 2.1M3 > > I've tried creating the id property but this fails because the > property 'id' is already set in the super class Record, and have tried > to add the setter setId() but this fails with > 'The type UserRecordImpl must implement the inherited abstract method > UserRecord.setId(Long)'
In the upcoming M4, EntityProxy (the new name for Record) no longer defines getId(); you have to define it on your own record/entity-proxy interfaces (types known to work: Long and String), so I suppose you can define a setter too (haven't yet finished converted my code from M2 to trunk/M4). -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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/google-web-toolkit?hl=en.
