hibernate 多对多关系详解(包括中间表,一对多字表)
2012-05-25 11:13:59 来源:WEB开发网核心提示:// if (args[0].equals("createAndStoreEvent")) {mgr.createAndStoreEvent("My Event", new Date());//}if (args[0].equals("listEvents")
// if (args[0].equals("createAndStoreEvent")) {
mgr.createAndStoreEvent("My Event", new Date());
//}
if (args[0].equals("listEvents")) {
List events = mgr.listEvents();
for (int i = 0; i < events.size(); i++) {
Event theEvent = (Event) events.get(i);
System.out.println("Event: " + theEvent.getTitle() +
" Time: "
更多精彩
赞助商链接