Skip to content

Blaze persistence and Hibernate Envers #1797

Answered by beikov
Pilpin asked this question in Q&A
Discussion options

You must be logged in to vote

For entity views to work correctly, there needs to be a Java class representation i.e. a mapping for the data/table. You can either map that explicitly like @jwgmeligmeyling suggested by creating dedicated @Entity to which you can refer to then, or you can write a @CTE @Entity and produce these objects through a CTE. You can then model an entity view for that CTE entity. Here is an example on how you can inject the CTE query into the entity view mapping: https://persistence.blazebit.com/documentation/1.6/entity-view/manual/en_US/index.html#using-ctes-in-entity-views

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@jwgmeligmeyling
Comment options

@beikov
Comment options

Answer selected by Pilpin
Comment options

You must be logged in to vote
6 replies
@Pilpin
Comment options

@beikov
Comment options

@Pilpin
Comment options

@beikov
Comment options

@Pilpin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants