Hello all,
I have the following standard bean objects as follows:
Code:
class A implements Serializable {
private Long id;
private Point point;
private String name;
...
}
class Point implements Serializable {
private int x;
private int y;
...
}
Class A is marked as an entity for persisting to the database. Class Point is not marked as an entity since it is a simple data object. Point's are always specific to all class A objects so it doesn't make sense to create a table mapping one to one. The generated database schema creates the point field in class A's table as a blob.
My problem is whenever I try and push an object of class A into the database which contains a Point object I get an insert error with hibernate. So how do I get hibernate to save my object?
Thanks in advance