Hi,
Does hibernate support the ability to map one field to another field within the domain model and allow HQL queires to use the former.
Use Case for this would be where we have a huge set of HQL queries that use the current domain model.Non-trivial changes are made to that model.The large set of queries prevent us doing this in one go.We need to be abe to evolve the changes.We would also have third parties that would have written queries against the old model.
e.g.
class Account{
private String accountNumber
private String IBAN
}
we want to change this to
class Account{
private Set<AccountKey> keys
}
class AccountKey{
String accountId
KeyTypeEnum idType
}
Could Hibernate support the ability to map Account.accountNumber to Account.keys.acountId where idType='Domestic'
Regards,
Phil
_________________ PMallon
|