Example usage for org.hibernate NonUniqueObjectException NonUniqueObjectException

List of usage examples for org.hibernate NonUniqueObjectException NonUniqueObjectException

Introduction

In this page you can find the example usage for org.hibernate NonUniqueObjectException NonUniqueObjectException.

Prototype

public NonUniqueObjectException(Serializable entityId, String entityName) 

Source Link

Document

Constructs a NonUniqueObjectException using the given information, using a standard message.

Usage

From source file:org.hyperic.hq.appdef.server.session.PlatformManagerImpl.java

License:Open Source License

private void throwDupPlatform(Serializable id, String platName) {
    throw new NonUniqueObjectException(id, "Duplicate platform found " + "with name: " + platName);
}