Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 7th, 2012  |  syntax: None  |  size: 0.67 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Object Composition and Hibernate Save/Update
  2. Buildings building = new Buildings(bldgInfoArg.getBldgId());
  3. building.setBldgNumber(bldgInfoArg.getBldgNumber());
  4.  
  5. BuildingInfos bldgInfo = new BuildingInfos(null,
  6.         building,      
  7.         bldgInfoArg.getTblAbbreviation(),
  8.         bldgInfoArg.getTblBldgName(),
  9.         bldgInfoArg.getTblStreetAddress(),
  10.         bldgInfoArg.getTblStateCode(),
  11.         bldgInfoArg.getTblZipCode(),
  12.         bldgInfoArg.getTblMajorBuilding(),
  13.         bldgInfoArg.getTblFirstEffectiveAt(),
  14.         bldgInfoArg.getTblLastEffectiveAt(),
  15.         bldgInfoArg.getTblCity(),
  16.         bldgInfoArg.getTblZipCodeExtension());
  17.  
  18. bldgInfoSssn.saveOrUpdate(bldgInfo);