Selecting MappedSuperclass from the database (Hibernate)

前端 未结 3 872
醉酒成梦
醉酒成梦 2021-01-01 23:40

Problem

I have a @MappedSuperclass called Data as the parent of every Entity in my database. It contains common attributes like Id etc. I then have an

3条回答
  •  暖寄归人
    2021-01-02 00:14

    Yes

    FROM Employee WHERE Employee. = someValue
    

    But only, as the others have said here, if the Employee entity is mapped. You don't need to even map it to its' own table. See the mapping strategies in Hibernate.

提交回复
热议问题