I have a project using spring + hibernate (not on cuba). How to use entities and dao’s from this project in cuba ?
This is certainly not straightforward. CUBA entities are not just POJOS, they should be inherited from specific base classes. Also, there are some restrictions on supported data types.
You can try to do the following:
- Create a CUBA project
- Copy your entity classes to the global module under the project’s root package
- For each entity, select a suitable base class
- Register entities in
Consider also using the Generate model Studio feature - it allows you to reverse-engineer an existing database and automatically create entities and CRUD screens.