Hi all,
I am having problems mapping two relations among tables.
I am using EJB3, so standard java persistence.
1) First relation definition.
The idea here is that a category may belongs to many categories. A many
to many relation but with itself.
CATEGORY * ID * DESCRIPTION * more properties PARENT_CATEGORY * CATEGORY_ID (FK) (foraign with id in table category) * PARENT_ID (FK) (foraign with id in table category) no more properties
CATEGORY * ID * DESCRIPTION * more properties LOCALE * ID * more properties CATEGORY_LOCALE * category_id (FK) (foraign with id in table category) * locale_id (FK) (foraign with id in table locale) * more properties