I need to use SpringBoot on a old legacy db where table are already defined and populated. I don't understand if it's even possible to map an @Entity to an existing table. I tried to use
@Entity
public class MyTable {...}
but every time I launch the SpringBoot application the table is destroyed and recreated empty... I tried to look in Hibernate Entity annotation doc but I didn't find anything useful. I've seen around some tools, but I would rather do it quickly by hand.
I don't even know if what I intend to do is meaningful, first time using Hibernate.