Abc:
Yest I mean Hibernate.
abstract class textType{
protected String name;
}
class Note extends TextType{
}
Class Discription extends TextType{
}
Class comment extends TextType{
}
Table TextType
Id (sequence)
Name (discriminator) varchar(8)
Example data:
1, note
2, comment
3, description
In Text Object
Text{
Private TextType type;
String value;
}
When I save Text to Text table, it has FK to TextType table. If I
passed in the type as Note, the text will have 1 (Note) as its type. If
I pass in type as Description, it will have 3 (Description) as its type.
How do I decorate the TextType using xdoclet? Thank you for helping.
________________________________
From: Developer Abe [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 16, 2007 2:47 PM
To: [email protected]
Subject: Re: [appfuse-user] Help please
Qin,
I am not sure what part of your app you want to create a hierarchy
relationship in. I am guessing you mean Hibernate.
Can you describe the problem you are trying to solve in more depth.
Regards,
Abe
On 8/14/07, Ding, Qin <[EMAIL PROTECTED]> wrote:
I use Appfuse 1.9.4/JSF/DB2. I try to build a hierarchy relationship by
adding xdoclet attributes to the class and its subclasses. Can anyone of
the appfuse developers show me a good example or point me to a good
document, tutorials...?
Thank you very much.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]