Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Server side converters

$
0
0
Version: 10.0p Built: 2015-06-23

Hiya,

I'm just learning the ropes with SmartClient and I am trying to prove it out by building up an application against a legacy database. The database (postgresql) includes a bunch of uuid fields so my JPA entities have a lot of UUID fields (most of the primary and foreign keys are UUIDs).

For example:
Code:

@Entity
public class Lib {
        @Id
        private UUID libid;
        private String autorev;
        ...

Is there a way to register a custom converter or some such to handle the server side binding for this? I have found the SimpleType declarations for the client side, but can't see how to tie this to the server object.

Cheers,
Evan

Viewing all articles
Browse latest Browse all 4756

Trending Articles