// Need this crappy hack to forge the relationship (castor completely sucks like this)
// TODO: When hibernate comes, just save the VOs and if it has a child VO with an id set
// TODO: it is used to make the relationship...ask me for clarification -frank
Category category = (Category)getObjectWithId(CategoryImpl.class, c.getCategory().getId(), db);
PropertiesCategory propertiesCategory = new PropertiesCategoryImpl();
propertiesCategory.setValueObject(c);
propertiesCategory.setCategory((CategoryImpl)category);
db.create(propertiesCategory);
return propertiesCategory;
}