So I am making a spring-boot application and I am importing some datamodel from an external library (imported through maven). I have some model that has a field of a type of the external library and I want to be able to persist it. Something like:
package com.example.module;
import external.Phone;
@Entity
public class Person{
@Id
@GeneratedValue
String id;
String name;
Phone phone;
}
The question is, is it possible to store the Phone
if it's implementation is something that is not JPA aware? E.g.:
package external;
public class Phone{
String number;
String areaCode;
}