Andre Brandt

Greenhorn
+ Follow
since Feb 28, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andre Brandt

Hi Forum,

first - I'm new to javaee and ejb3 ;)

I've created a new entity bean which has successfully be deployed on my jboss 5.0.0GA. Persisting new objects does work. (via em.persist(object)) So I wrote a little test to find out, if my unique constraint also work - well, it doesn't seem to/it works too good ...

When adding a second, identical object to my database, I get an ConstraintViolationException. Can someone tell me, where my mistake is?

I thought, that, when catching EntityExistsException that should not happen...

best regard,
Dellerium



entity bean:


Dao bean: