Hibernate JPA @Type Example

@Type

The @Type annotation is used to specify the Hibernate @Type used by the currently annotated basic attribute.

Custom BasicType mapping

@Entity(name = "Product")
public static class Product {

@Id
private Integer id;

@Type( type = "bitset" )
private BitSet bitSet;

public Integer getId() {
return id;
}

//Getters and setters are omitted for brevity
}

Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept