Hi
Can someone please advise on how to define & map (using annotations) custom types in Hibernate?
Eg, given:
@Entity
public class Line {
private Point startPoint;
private Point endPoint;
}
public class Point
{
private double x;
private double y;
}
Rather than having Point persisted as an object, I'd like to see Line persisted like:
startPointX , startPointY , endPointX , endPointY
What's the approriate way to do this?
Regards
Marty