WEB开发网
开发学院软件开发Java hibernate 多对多关系详解(包括中间表,一对多字表... 阅读

hibernate 多对多关系详解(包括中间表,一对多字表)

 2012-05-25 11:13:59 来源:WEB开发网   
核心提示:System.out.println("Added person " + personId + " to event " + eventId);}elseif (args[0].equals("addemailtoperson")) {Long personI
System.out.println("Added person " + personId + " to event " + eventId);

    }

    elseif (args[0].equals("addemailtoperson")) {

      Long personId = mgr.createAndStorePerson("Foozy""Beary");

      mgr.addEmailToPerson(personId, "foo@bar");

      // mgr.addEmailToPerson(personId, "bar@foo");

      System.out.println("Added two email addresses (value typed objects) to person entity : " + personId);

    }

 

上一页  13 14 15 16 17 18 19 20 21 22 23  下一页

Tags:hibernate 关系 详解

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接