Map two fields to one database column
<p><strong>Question:</strong> Am I somehow able to map two fields of my Entity class to only one Column in the Database?</p>

<p><strong>Scenario:</strong> The database is not fully normalized. There exists one Column which contains a composite information. It is not my actual use case, but an comprehensible example might be X- and Y-coordinate of a point in the plane. So the Database may contain a String <code>12:45</code> and the Entity class should contain only two integer field <code>x</code> width value <code>12</code> and <code>y</code>with value <code>45</code>.</p>

<p>Currently the Entity class has just two additional getter and setter for x and y and performs the proper translation. But I am wondering if there is a way to let JPA do this for me magically in the background. </p>

<p>I am already working with custom converter classes, e.g. for a proper mapping between between enums and database columns, but this works only for a "one-to-one" mapping between the field in the Entity class and the column in the database.</p>

<p>Of course it would be the most preferable way to redesign the table in the database, but that's not an option at the moment.</p>

<p>Vendor specific solutions are also fine.</p>