Hello,
I want to know if there is an option to persist only selected fields of a persistent object. I have my entity and persistent class something like below
@Entity
public class BerkeleyEntity {
@PrimaryKey
private String configPath;
private ConfigObject xmlData;
}
@Persistent
public class ConfigObject
{
private Map<String, ClassA> firstMap;
protected Map<Long, ClassB> secondMap;
private Map<Long, ClassC> thirdMap; }
Currently, I have all the 3 classes ( ClassA, ClassB, ClassC ) declared as persistent ( I am using BD JE )
Is there a way for me to tell berkeley db to persist only ClassA, ClassB and not ClassC ?
The original object is a more complex and 4-5 levels deep so checking if I can do something keeping the ConfigObject intact
Thanks,
Neel
ComClassmonFieldIs