I’m using a table and I want to customise my filter. This table has some custom columns using addGeneratedColumn() method. I attached an example below in which for a list of ingredients I am calculating a subtotal.
If you are talking about the generic Filter component, you can create a custom condition with an arbitrary JPQL. See Add condition > Create new. Of course you cannot use your generated columns in the filter conditions as it operates on the database level. So consider creating a subtotal attribute in your entity and calculating it when the entity is updated, for example using an entity listener.
I would need to make querries which would imply multiple joins and as far as I know this is not possible. There is some way to achieve something like this?