We have a JPA Entity. Once the entity is persisted in db, some fields of this entity(db columns) along with some other data (which is not part of this entity) has to be stored in a JCR object-store.
Should I create one single Entity(JPA) for both DB and JCR and just add JCR fields in Entity and mark them @Transient?
or
Should I use inheritance or composition(using JPA Entity) and create a new JCR specific object? Basically, should JPA entities be strictly used for DB or is @Transient in this case an abuse?