Jpa IdGenerator

    Jpa Hibernate Custom Id Generator

    custom ID를 생성하기 위해 Custom Generator 를 생성하기 위해서는 IdentifierGenerator 인터페이스를 이용해서 generate() 메서드를 구현해야 한다. IdentifierGenerator 인터페이스구현 클래스는 반드시 public 으로 선언된 기본 생성자가 있어야한다 package org.hibernate.id; public interface IdentifierGenerator extends Configurable, ExportableProducer { ... Serializable generate(SharedSessionContractImplementor session, Object object) throws HibernateException; } Identifier..