public RequirementSpecNodeServer addSpecNode ( String name , String description , String scope ) throws Exception { RequirementSpecNodeServer sns = new RequirementSpecNodeServer ( new RequirementSpecJpaController ( getEntityManagerFactory ( ) ) . findRequirementSpec ( getRequirementSpecPK ( ) ) , name , description , scope ) ; sns . write2DB ( ) ; getRequirementSpecNodeList ( ) . add ( new RequirementSpecNodeJpaController ( getEntityManagerFactory ( ) ) . findRequirementSpecNode ( sns . getRequirementSpecNodePK ( ) ) ) ; write2DB ( ) ; return sns ; }
Add a node to this spec .