Home » Support » Issue Tracking » Unlimited JPA Persistable Types

Unlimited JPA Persistable Types

Type: Feature requestVersion: 2.6.0Priority: NormalStatus: ActiveReplies: 2
#1

I think it would be revolutionary if it were possible to persist any Java object, not just the standard SQL-based objects. Perhaps introducing an annotation will allow for this, something like @BasicType.

The ability to store the state of an entire application would be a new innovative approach to persistence. For example, being able to persist: private Thread thread;

Since ObjectDB is a proprietary database, surely this could be introduced by adding some sort of equals() override?

#2

Actually you can persist any Serializable type by setting the configuration.

There is no point in persisting most of the non serializable types such as Thread, because when retrieved from the database it will not behave as expected.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

The above link is for an XML configuration. Is there a way to do the setting via a Java configuration by any chance?

Why won't Thread behave as expected? Everything has state so are certain attributes lost during serialization in that case?

I've noticed that you cannot persist any collections either. If this feature was in place it wouldn't matter what the object type is, surely?


Post Reply

To post a reply and/or subscribe to update notifications - please login