ahmed fayed wrote:I've found another way to keep the direct relation between the two domain entities by using a Map ElementCollection feature of JPA 2.0; I've tested it on the quantity attribute and found it working.
I think class diagram should be technology agnostic, it's no need to specify what technologies you are using here, just remaining the relationship many to many should be better.