CMDBuild Forum

2.1.2 inherit function not work

I set up a 2.1.2  cmdbuild.

1. I create a "Asset" Class, inherit from "Class" and set it as superclass, no attribute added.

2. I create a "Device" class, inherit from  "Asset" class, and set it as superclass, then add some attributes to "Device"  class like "SerialNumber", "hostname" and so on.

3. I  create a "Server" class inherit from "Device". As I thought, it would inherit all the attributes from "Device", but it only inherit some of them. Also, when I delete the attribute from "Device", the correspondings in "Server" did not disappear.

So, any ideas?

Thanks.

Previously jaseywang wrote:

I set up a 2.1.2  cmdbuild.

1. I create a "Asset" Class, inherit from "Class" and set it as superclass, no attribute added.

2. I create a "Device" class, inherit from  "Asset" class, and set it as superclass, then add some attributes to "Device"  class like "SerialNumber", "hostname" and so on.

3. I  create a "Server" class inherit from "Device". As I thought, it would inherit all the attributes from "Device", but it only inherit some of them. Also, when I delete the attribute from "Device", the correspondings in "Server" did not disappear.

So, any ideas?

Thanks.

 

Well,  I found a workaround. When I restart tomcat6(tomcat6-6.0.24-33.el6.noarch), it works. It may be some bugs in tomcats.

Hi, it is a known bug that will be resolved as soon as possible.

As a workaround you can clear the cache of CMDBuild (Administration -> Setup), without restarting Tomcat.

 

Stefano