CMDBuild Forum

Is it possible to modify the base class?

Is it possible to modify the base class?

When you create a new class you get Code, Description and Notes.  I want to add a fourth called 'Name' that every class will inherit.  I tried two methods that give me the result I want but I wanted to see if there was a better way or any implications to the methods I have tried.

 

1.  Add a column to the class table in PostgreSQL replicating the description column (Seems to work but I've not tested it extensively)

2. Add a superclass and put everything under that (kind of messy and I don't really like it)

Technically at this time the solution 1. works.
However, we recommend the solution 2. because the system classes are reserved and may be changed by our technicians in such a way that is not compatible with your intervention.
CMDBuild Team

I strongly suggest you create a Superclass and then base all your other classes upon this class. This way your app is safe for upgrade to later version of CMDB. I do it this way myself.