0
down vote
favorite
I'm trying to build my first javaFX application, but I have some difficulties writig the hibernate configuration. Can I use a application.propperties in java FX or is this only for spring? I included my hibernateconfigurationfile and the code for building my connection.
hibernate.cfg.xml:
Invocation:
StackTrace:
If there isn't a way to use a application.propperties in FX, could anyone point me in the direction of wat is wrong with my configuration?
And yes, I know you can use javaFx in spring, but don't want to start over again.
Sorry for my crappy English, but I'm not native.
Thanks in advance.
Daniel: It's permitted in CodeRanch to cross-post (post the same question in two places), but we ask that you state you have done this. That way we at CodeRanch don't waste our time posting something that's already been posted at StackOverflow.
And how do I edit my original post, so I can do so?
The question on stackoverflow is also posted by me.
The reason i posted on 2 forums is on stackoverflow, your question easily get's lost in all the other posts.
My appoligies, next time I will mention that I already posted somewhere else
I know this can be done. Googling JavaFX and Hibernate produces several tutorials.
I am a great believer in creating very stripped-down programs that isolate the processes you want to test. I would create a little JavaFX program with just a scene and try to connect to Hibernate. Then try a program that only loads and displays your FXML resource. Then put the two together.