Dne Tuesday 10 of June 2008 15:58:27 Ivan Polak napsal(a):
> no praveze to nejako nefunguje: vypisuje to chybu:
>
> .....Object with id: 4667772 was not of the specified subclass: sk.xxxx.A
> (Discriminator: 1   ); nested exception is
> org.hibernate.WrongClassException: Object with id: 4667772 was not of the
> specified subclass: sk.xxxxx.A (Discriminator: 1   )

tak z toho nejsem 2x moudry ^^^

jinak teď jsem vyzkoušel:

for (Object o : session.createCriteria(Object.class).list()) {
    System.out.println(o.getClass().getSimpleName());
}

a vrátilo to pěkný seznam všech možných entit...

-- 
Martin Beránek

Odpovedet emailem