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;
}
@@ -162,16 +162,45 @@
 ence.Id;
+%0Aimport java.io.Serializable;
 %0A%0A@CTE%0A@
@@ -229,16 +229,40 @@
 bKeyVer 
+implements Serializable 
 %7B%0A    @I
@@ -290,16 +290,23 @@
 tabKey;%0A
+    @Id
 %0A    pri

Test with 2 @Id mappings for Blaze Persistence JPA Criteria