I have 2 class entity have some same properties. How do i select paging from 2 table and cast to a class dto?
@Entity class A { var id: Long, var name: St