[英]Using In-memory Database With Hibernate tutorial how to execute?
I'm new in Java and Hibernate as well. 我也是Java和Hibernate的新手。 I'm following this tutorial @ http://howtodoinjava.com/2014/09/03/hibernate-4-using-in-memory-database-with-hibernate/
我正在关注本教程@ http://howtodoinjava.com/2014/09/03/hibernate-4-using-in-memory-database-with-hibernate/
I managed to compile the code and understood the concept as well. 我设法编译了代码并理解了这个概念。 But the problem is that I don't know how to execute the code to debug some stuff.
但是问题是我不知道如何执行代码来调试某些东西。 When I start app as java application in eclipse.
当我在Eclipse中将应用程序作为Java应用程序启动时。 I have a long list to of option.
我有很多选择。 But I don't see my actual test class to run.
但是我看不到实际的测试课程要运行。 So How to run it and debug this app?
那么如何运行它并调试该应用程序呢? Also I tried this @ https://gist.github.com/twasink/2881461 .
我也尝试了这个@ https://gist.github.com/twasink/2881461 。 Same is issue.
也是问题。 No idea how to run.
不知道如何运行。
Please check the screen shoot of eclipse list while:- 在以下情况下,请检查日食列表的屏幕截图:
There is a main()
method in TestHibernate.java
. TestHibernate.java
有一个main()
方法。 Use it. 用它。
The tutorial that you are following is maven project. 您关注的教程是maven项目。 Try creating a simple maven project in eclipse and move the required artifacts to thelocation as specified in the screenshot in the tutorial.
尝试在eclipse中创建一个简单的maven项目,然后将所需的工件移动到本教程的屏幕快照中指定的位置。 It will be a good learning curve to you.
对您来说,这将是一个很好的学习曲线。
As a hint use archetype as maven-archetypes-quickstart while creating maven project. 作为提示,在创建Maven项目时,可以将原型用作maven-archetypes-quickstart。 Hope this helps.
希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.