开发者

Using sets in JDO

开发者 https://www.devze.com 2023-01-14 07:28 出处:网络
I have a model which contains a java.util.Set object as a 开发者_开发百科member. How do I persist this using JDO? Specifically, how do I define the XML in the .jdo file?

I have a model which contains a java.util.Set object as a 开发者_开发百科member. How do I persist this using JDO? Specifically, how do I define the XML in the .jdo file?

class MyClass {
    Set<String> data;

    private MyClass() {
    }
}


Perhaps looking in the docs for your JDO implementation for 1-N relations with non-PC objects

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号