* @return the found object.
*/
public IpPoolManagement findIp(final VLANNetwork vlan, final Integer ipId)
{
Criteria criteria = getSession().createCriteria(IpPoolManagement.class);
Criterion vlanEqual = Restrictions.eq(IpPoolManagement.VLAN_NETWORK_PROPERTY, vlan);
Criterion ipEqual = Restrictions.eq(PersistentEntity.ID_PROPERTY, ipId);
criteria.add(vlanEqual).add(ipEqual);
return (IpPoolManagement) criteria.uniqueResult();
}