Java Examples for org.hibernate.type.descriptor.java.BlobTypeDescriptor

The following java examples will help you to understand the usage of org.hibernate.type.descriptor.java.BlobTypeDescriptor. These source code samples are taken from different open source projects.

Example 1
Project: hibernate-orm-master  File: BlobDescriptorTest.java View source code
@Test
@Override
public void testEquality() {
    // blobs of the same internal value are not really comparable
    assertFalse(original == copy);
    assertTrue(BlobTypeDescriptor.INSTANCE.areEqual(original, original));
    assertFalse(BlobTypeDescriptor.INSTANCE.areEqual(original, copy));
    assertFalse(BlobTypeDescriptor.INSTANCE.areEqual(original, different));
}