Visual Paradigm Logo
     Build Quality Applications Faster, Better and Cheaper
 
Home | Products | Download | Documentation | Support | Resources | Partners | Quick Tour | Shop | Company |  
 
   Visual Paradigm Discussion Forum
  Login   [ Register ] Email: Password: Log me on automatically I lost my password  
Recent Topics
Advanced Search
Yet another mapping strategy  
Forum Index -> Object Relational Mapping (ORM)
Author Message
Jacenty


Joined: 2006/11/09
Messages: 73

Offline

Is it possible to map classes being in inheritance relationship by placing columns for base class attributes in tables of subclasses?
It is quite common technique, but I couldn't find a way to do It in VP.


 
Jacenty


Joined: 2006/11/09
Messages: 73

Offline

Like on the images below

Attached Image : No description given (21 kb)

Attached Image : No description given (22 kb)

 
Jick


Joined: 2005/04/29
Messages: 2880

Offline

Hi Jacenty,

Please try:

1. Right-click on the Person class and select Open Specification from the popup menu
2. Open the ORM Class Detail tab
3. Click on the Subclasses... button
4. Apply 'Table per Subclass' as the strategy for both the subclasses. (see the attached image)
5. Sync. to ERD

Best regards,
Jick

Attached Image : No description given (14 kb)


Visual Paradigm International Ltd.
http://www.visual-paradigm.com

Build Quality Applications Faster, Better and Cheaper
 
Jacenty


Joined: 2006/11/09
Messages: 73

Offline

The resulting ERD was different:

Attached Image : No description given (38 kb)

 
Jick


Joined: 2005/04/29
Messages: 2880

Offline

Hi Jacenty,

Thank you for your suggestion. I have discussed with our developers. We think that we can support it. But it may take some time. I will inform you once this is available.

Best regards,
Jick

Visual Paradigm International Ltd.
http://www.visual-paradigm.com

Build Quality Applications Faster, Better and Cheaper
 
Anonymous

Thank you. Probably associations with base class will be difficult to map, since it has no table. But there are some solutions to it.
 
roberts


Joined: 2007/02/28
Messages: 3

Offline

hi,

hope support it early. interested too.

Thanks.

software reviews
 
 
   Forum Index -> Object Relational Mapping (ORM)
Go to:   
Powered by JForum 2.1.4 © 2005 - Rafael Steil