-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Remove last element from many to many mapping
PostPosted: Sun Mar 02, 2014 6:15 pm 
Newbie

Joined: Fri Jan 31, 2014 8:09 pm
Posts: 2
Hi,
I need remove a given element from a list. This list is mapped as many to many. The problem is that if my list contains just the element I want to remove, then the changes are not taking effect. Otherwise, it is working correctly. I couldn't find the reason. What could it be?

My mapping:
Code:
@Entity
public class Mesa extends AbstractModel {

   @NotEmpty(message = "Não conseguimos identificar alguns dados. Tente sair e entrar de novo.")
   @ManyToMany
   private List<Cliente> clientes = new ArrayList<Cliente>();

   ...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.