posted 16 years ago
Hi guys! I have a problem... I have this mapping in my class named FixedItem. And with it is a member named assignedTo which is mapped to an int in a relational table. This is suppose to be a foreign key but I decided not to make it one because I'm not gonna be relating it in the database but instead get its value from a webservice.
Now, I wanted to change the member from an int to a class named Employee which looks like this...
thus, changing the code to
but I don't know where to put the annotations and which mapping to make. The employeeId needs to be the one mapped to the database table field. assigned_to.
If you need to take a look at my FixedItem class and its mapping, here it is...
Sorry for my ignorance, I'm just depending on the netbeans auto-generated code and so are my mappings. Please help me form my annotation and mapping. Thanks!
[ May 11, 2007: Message edited by: Timothy Sam ]