Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经设置了继承,只有很少的子类。我得到了一个 id,并且我希望能够发送一个查询,让我返回鉴别器,我可以从中调用正确的存储库并获得完整的膨胀类。
有任何想法吗?
给出鉴别器:
从对象 d 中选择类型(d)
给出类:
@Query("从 AbstractEvent e 中选择 e.class,其中 e.id = :id")