Title: Nachricht
Hi,
 
I' trying to create an entity bean with container managed persistance by using Sun ONE Studio 5. The Mapping Assistant tells me, that my table does not have a primary key, although it has one. When I create an additional unique index on my table (only for testing), the assistant creates the mapping but the bean doesn't work because it seems to take the index as primary key. When I only create a unique index and have no primary key on the table, the assistant tells me, that there is no primary key and does not create the mapping.
 
So, the primary key is necessary and at least one UNIQUE-flag. But I cannot create a unique index on a primary key field, because it is already indexed.
 
Any ideas are appreciated.
 
Norbert Mende
 

Reply via email to