Hi, a question for you all.
I'm evaluating Hibernate to use it in a new project. What we need is to make the following class graph persistent via Hibernate.
abstract class Worker
class Technician extends Worker
class Project
Project and Technician are associated. The association is "involved in project" and is a m-n association.
I'm trying to use xdoclet, ant, exportschema ant task.
What is not clear to me is how map the Worker class. It's abstract so I suppose it's correct not to map it. An instance of a abstract class can't exists.
So, I think to map on the db only Technician.
The problem arise when I try to use xdoclet... let's suppose Worker has a couple of methods setName, getName. They are hinerited by Technician.
I can't put @hibernate.property for name in Worker, 'cause it's abstract and I don't need to map it via Hibernate. I can't put @hibernate.property on Technician 'cause it hinerits getName and setName from Worker and there is no source where I can write the xdoclet tags...
can you help me solve this problem ?
thanks.
_________________ .o0 DaniDemi Oo.
|