Guest User

Untitled

a guest
Jan 22nd, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. Fruit fruit = dao.get(id, Fruit.class)
  2. if(fruit instanceof Orange)
  3. {
  4. (Orange) fruit
  5. }
  6.  
  7. select f from Fruit f where f.class = 'a.b.c.Fruit'
Add Comment
Please, Sign In to add comment