package com.vladmihalcea.book.hpjp.hibernate.criteria.blaze.tab.cte;

import com.blazebit.persistence.CTE;

import javax.persistence.Entity;
import javax.persistence.Id;

@CTE
@Entity
public class TabKeyVer {
    @Id
    private String tabKey;

    private Long tabVer;
}
package com.vladmihalcea.book.hpjp.hibernate.criteria.blaze.tab.cte;

import com.blazebit.persistence.CTE;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

@CTE
@Entity
public class TabKeyVer implements Serializable {
    @Id
    private String tabKey;
    @Id
    private Long tabVer;
}
Test with 2 @Id mappings for Blaze Persistence JPA Criteria
Test with 2 @Id mappings for Blaze Persistence JPA Criteria
