@Override
    public Class<BaseTicketEntity> getType() {
        return (Class<BaseTicketEntity>) getEntityClass();
    }
From tickets objects to entity.

@param encodedTicket the ticket
@param realTicket    the real ticket
@return the jpa ticket entity
support/cas-server-support-jpa-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/JpaTicketEntityFactory.java