コード例 #1
0
  @Override
  public void assertAllPropertiesEqual(final IpPoolManagement obj1, final IpPoolManagement obj2) {
    AssertEx.assertPropertiesEqualSilent(
        obj1,
        obj2,
        IpPoolManagement.NAME_PROPERTY,
        IpPoolManagement.MAC_PROPERTY,
        IpPoolManagement.CONFIGURATION_GATEWAY_PROPERTY,
        IpPoolManagement.QUARANTINE_PROPERTY,
        IpPoolManagement.IP_PROPERTY);

    dhcpGenerator.assertAllPropertiesEqual(obj1.getDhcp(), obj2.getDhcp());
    vlanNetworkGenerator.assertAllPropertiesEqual(obj1.getVlanNetwork(), obj2.getVlanNetwork());
    rasdmGenerator.assertAllPropertiesEqual(obj1, obj2);
  }
コード例 #2
0
  @Override
  public void addAuxiliaryEntitiesToPersist(
      final IpPoolManagement entity, final List<Object> entitiesToPersist) {
    super.addAuxiliaryEntitiesToPersist(entity, entitiesToPersist);

    Dhcp dhcp = entity.getDhcp();
    dhcpGenerator.addAuxiliaryEntitiesToPersist(dhcp, entitiesToPersist);
    entitiesToPersist.add(dhcp);

    VLANNetwork vlanNetwork = entity.getVlanNetwork();
    vlanNetworkGenerator.addAuxiliaryEntitiesToPersist(vlanNetwork, entitiesToPersist);
    entitiesToPersist.add(vlanNetwork);

    rasdmGenerator.addAuxiliaryEntitiesToPersist(entity, entitiesToPersist);
  }