Hello,
I want to store a String array as a binary object in database.
I use
Code:
/**
* @hibernate.property
* type = "serializable"
*/
public String[] getColumnAlgorithmParameters() {
return columnAlgorithmParameters;
}
but xdoclet generates
Code:
create table task (
id BIGINT NOT NULL AUTO_INCREMENT,
columnAlgorithmParameters VARCHAR(255) BINARY,
primary key (id)
)
I don't think the above mapping is correct.I acutally want to put the whole array as a large binary object.
Also, If i have an object of type MyObject and it is a property of the Parent Object.To serialize it as binary, should i specific it as
Code:
/**
* @hibernate.property
* type = "serializable"
*/
Pls give some hints!
Thanks.