-
1. Re: [forge-users] How to prevent duplicate data ?
gastaldi May 4, 2014 9:57 PM (in response to chayimamaral)Hi,
AFAIK this is a specific business requirement and you need to change in the EJB after the code is generated for you.
Best Regards,
George
Em 04/05/2014, às 22:24, forge-users@lists.jboss.org escreveu:
Hi.
Using JBoss.Forge, how to prevent duplicate data ? I created an entity named "warehouse" and added some records with the same description.
Did Forge any control about ?
Thanks
Posted by forums
Original post: https://community.jboss.org/message/872295#872295
_______________________________________________
forge-users mailing list
_______________________________________________
forge-users mailing list
https://lists.jboss.org/mailman/listinfo/forge-users
-
2. Re: [forge-users] How to prevent duplicate data ?
lincolnthree May 5, 2014 3:09 PM (in response to gastaldi)You can also add unique constraints and composite constraints to the JPA
model for your "Warehouse" class - see:
http://stackoverflow.com/questions/3126769/uniqueconstraint-annotation-in-java(just
one of many resources that can tell you how to do this.)
On Sun, May 4, 2014 at 9:57 PM, George Gastaldi <ggastald@redhat.com> wrote:
Hi,
AFAIK this is a specific business requirement and you need to change in
the EJB after the code is generated for you.
Best Regards,
George
Em 04/05/2014, às 22:24, forge-users@lists.jboss.org escreveu:
Hi.
Using JBoss.Forge, how to prevent duplicate data ? I created an entity
named "warehouse" and added some records with the same description.
Did Forge any control about ?
Thanks
Posted by forums
Original post: https://community.jboss.org/message/872295#872295
_______________________________________________
forge-users mailing list
_______________________________________________
forge-users mailing list
https://lists.jboss.org/mailman/listinfo/forge-users
--
Lincoln Baxter, III
"Simpler is better."
-
att1.html.zip 1.0 KB
-