P
P
prizrak392017-01-18 20:02:41
Java
prizrak39, 2017-01-18 20:02:41

How to create a shared library for different classes?

Hello.
The essence of the problem is the following. There is a server application in Java. There is also an Android application that interacts with the back end.
There are common classes and I would like to put them in a separate library, but in the server-side classes, some classes have annotations for working with hibernate.
Is it possible to move them to a separate library?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
prizrak39, 2017-01-18
@prizrak39

Yes, now I understand what is possible. But I realized that there is a problem how to specify a package for the application, in which hibernate is looking for classes to work with the db.pojo.package database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question