Page 1 of 1

Adding a admin-user-id as a foreign key to product

Posted: Fri Feb 20, 2015 3:43 am
by shreekantha
All,

I have created custom MyProductImpl and CustomUserImpl class , where I have the mapping of OneToMany between CustomUserImpl and MyProductImpl . Tables are created in the db as well admin UI is generated for MyProductImpl .
Now I wanted to have the user who logs in , his userid as a foreign for the product when the user adds the product.

Thanks.