Hi,All,
I'm thinking about using MySQL cluster in my project. I did some evulation on the ClusterJPA shipped with MySQL cluster 7.3.5. But I have following questions:
1. I've several java classes to be mapped to different MySQL tables and these classes have a common base class and I want to put '@Id private String Id' into the base class (so sub classes can share it). But when I try to persist an object of some subclass, ClusterJPA reports an exception which says that the type of 'id' column is mismatch. I checked the schema and found that the ' id' was defined as "BIGINT' instead of VARCHAR(255). Does this mean that ClusterJPA doesn't support class inheritance?
2.According to the definition of com.mysql.clusterj.annotation.PrimaryKey, we can specify the column name of a primary key by setting its attribute 'column'. But it seems not work. Is this bug?
Thanks
I'm thinking about using MySQL cluster in my project. I did some evulation on the ClusterJPA shipped with MySQL cluster 7.3.5. But I have following questions:
1. I've several java classes to be mapped to different MySQL tables and these classes have a common base class and I want to put '@Id private String Id' into the base class (so sub classes can share it). But when I try to persist an object of some subclass, ClusterJPA reports an exception which says that the type of 'id' column is mismatch. I checked the schema and found that the ' id' was defined as "BIGINT' instead of VARCHAR(255). Does this mean that ClusterJPA doesn't support class inheritance?
2.According to the definition of com.mysql.clusterj.annotation.PrimaryKey, we can specify the column name of a primary key by setting its attribute 'column'. But it seems not work. Is this bug?
Thanks