Christian Beikov

Results 516 comments of Christian Beikov

I don't think conversion would make much sense. JPA has no idea what the model structure of the converted type is, so you'd have no way of accessing individual properties...

It's not specific to MySQL. The big vendors all offer the SQL standard LISTAGG or some vendor specific version of it. In general, the SQL standard calls these kinds of...

FWIW Hibernate 6.0 supports `listagg` in HQL. If anyone is willing to work on the spec parts, Hibernate can serve as a compatible implementation.

If you use an attribute converter, the model type of the attribute will be e.g. `Money` instead of the embeddable type `MoneyEmbeddable`. But what is the structure of the type...

>I think that the EmbeddableMoney should be an internal construct as it is not directly used in the user's entity model. You wouldn't find any attribute/property of this type (only...

I think your view is a bit simplistic. In order to do proper dirty checking you need the information about mutability etc. so something like the Hibernate UserTypes really is...

>You're right, a @Mutable annotation or a new boolean mutable() attribute could be added to @Converter. This is not just about the fact that something is mutable, but it also...

>You may be right but this kind of API seems to be really at odd with the rest of JPA where most of the mapping is done in a declarative...

FWIW Hibernate 6.0 implements support for this in HQL and the JPA Criteria API extension. If anyone is willing to work on the spec parts, Hibernate can serve as a...

IMO this would be a great addition and I think that the model EBean provides is interesting. I don't think that the mapping of start/end system time should be forced...