M
M
Mark Struchkov2021-03-07 10:15:56
Java
Mark Struchkov, 2021-03-07 10:15:56

How to mark someone else's object?

I am writing a small library. She doesn't need a spring or a hiber. But I assume that the user of the library, if desired, will be able to save entities in the database, most likely through hiber.

Hence the question, how can you make @Entity from a library object that is not marked up with annotations in advance.

I hope I explained my idea clearly :D

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-03-07
@upagge

With xml configuration.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question