Hello,
I am using the QtJambi library and in one of my classes I have a list:
private List<QPointF> points = new ArrayList<QPointF>();
I want to save point.x() in the column x and point.y() in the column y.
Following
http://www.hibernate.org/hib_docs/annot ... -extratype I tried these annotations:
@CollectionOfElements
@JoinTable( name="polygonpoints",
joinColumns = @JoinColumn(name="polygonlocation") )
@IndexColumn(name = "indexinlocation", base=0)
@AttributeOverrides( {
@AttributeOverride( name="element.x", column=@Column(name="x") ),
@AttributeOverride( name="element.y", column=@Column(name="y") )
})
private List<QPointF> points = new ArrayList<QPointF>();
However, x and y are not stored.
Any hint or idea?
Thanks a lot!