I'm having an issue with referencing an entity bean twice from other bean. Here's a simplified version of what I have:
Now, to begin with, is this allowed? If not, how can I achieve something like that? If so, then why am I getting errors while trying to delete objects of type Block? :-). I tried to play around with different cascading settings but nothing seems to help. I'm getting an error:
where the identifier is the key of the block which indeed occurs twice in the Items table, for two different items, but I do not see why should that be a problem.
Any help greatly appreciated!