i want to design a column is text type
and use hibernate to convert to object
but the column is a bit difficult,it is liked "1.5,2.32;4.2,53.2...."
it represent many coordinate and is in order,(1.5,2.32),(4.2,53.2) and so on.
so i want to mappting the column to an object like
Public class Region{
List<Coordinate> coordinateList;
}
public class Coordinate {
double lat;
double lng;
}
the coordinateList is the same as the column order such as (1.5,2.32),(4.2,53.2) so how can i use annotion jpa or hibnernate annotation to convert the column to my defined object?