Hi all!
Here is my scenario. I have a domain class Users. So far, it was mapped to a single table, which is easy. But now I have to replace the money field, with an AccountManager. An implementation of AccountManager holds Accounts in a Map. In the DB, the Accounts are stored in a table, with FK to the Users table. The Account class has an amount field, and an enum type, that is the name of the column name of the column in the DB table. So a single line of Accounts DB table with n column should create n-1 instances.
How can I map it? I've done som exesive reseach, but I found no solution so far. Any idea?
Thanks in advance, gmate
|