문제

I am trying to teach my self hibernate with a net-beans tutorial. Here are one link, but I tried several, using same sample database: (so far I am only allowed one hyperlink ;0 )

I would have thought Netbeans makes it simple, but the creation of pojos / mapping files always fails! I do create cfg.xml + reveng.xml, but when trying to create mapping files, i can choose my tables in the wizard, add them, but after clicking finish the IDE does not create anything !! (plus: I am not able to click next, only finish ! / as some tutorial asks u to click next)

Now I really wonder what could be the cause, I would appreciate any help. I checked NetBeans mailing / bug list - there solutions did not work for me.

I am using NB 6.9.1 - (currently downloading newest hibernate libraries / zip file, but not even sure what to do with them when done)

Thanks for any help / advice - I had found one question on stackoverflow, but there was no real solution given !!

Best Regards Alexis

도움이 되었습니까?

해결책

OMG => ok, simply, because I did not close the opened files like xml and helper files, NB would not create the mapping files - need to close the files !! And for anyone coming accross same issue, also make sure this line is correct

org.hibernate.hql.classic.ClassicQueryTranslatorFactory

Cos as described in tutorial, this line actually is not available in NB - needs to be added manually !! -> figured that out yesterday, however all in all, i just found it to be a dodgy matter. !!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top