I'm currently working on developing my own API to use with ObjectDB and I'm running into the following problem. Using the API I can insert data into an empty database without any issues; however, whenever I try to add new data to the database for a class that already has data stored, I get the following exception:
java.lang.ClassCastException: SimpleObjectDso cannot be cast to com.objectdb.spi.TrackableUserType
Just for some background. SimpleObject is a POJO. SimpleObjectDso is created using reflection and is the JPA entity class. Like I said, I can add data for this class when the database is empty without any problems. Trying to add data once data has already been added for this class, produces this exception.
Any insight into why and how I can avoid this exception?
Thanks in advance.