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
Avoiding auto-inclusion of getORMID() method in POJO generation  
Forum Index -> DB Visual ARCHITECT (DB-VA)
Author Message
rameshg


Joined: 2008/03/27
Messages: 6

Offline

1. getORMID() inclusion in POJO
In POJO code generation each class gets an extra method getORMID() automatically added. Is there a way to avoid it ?

This especially gives problem if the primary key of the child class has a different data type from the data type of primary key of the parent class, in inheritance relationship.

Compilation errors thrown because parent and child classes' getORMID return types are different.


 
Rain


Joined: 2005/04/29
Messages: 711

Offline

Hello rameshg,

Thanks for your message and I've forwarded your issue to our engineers to follow-up. And I'll get back to you once there are any feedback. If you need any help, please do not hesitate to contact me again.

Best regards,
Rain Wong
 
Rain


Joined: 2005/04/29
Messages: 711

Offline

Hello rameshg,

Both table per class hierarchy and table per subclass strategy will not generate additional PK in subclass and therefore it will not generate the getORMID method in subclass. Do you mean you have the attributes in subclass which name is same to the PK column but having different type? It seems not a usual design.

Best regards,
Rain Wong
 
 
   Forum Index -> DB Visual ARCHITECT (DB-VA)
Go to:   
Powered by JForum 2.1.4 © 2005 - Rafael Steil