panache feature: enable programmatically @DynamicUpdate

18 views
Skip to first unread message

JFlower

unread,
Mar 9, 2023, 8:53:16 AM3/9/23
to Quarkus Development mailing list
Hello,

in Hibernate is possible to add this annotation, to entities:

@Entity
@DynamicUpdate
public class StockTransaction implements java.io.Serializable {}

to enable the exclude unmodified properties in the Hibernate’s SQL update statement.
I'm thinking about a new panache method on:

<T extends PanacheEntityBase>

like:

public void dynamicUpdate() {
someMagicWayToEnableDinamicallyUpdateOn(this);
}

Is it possible to do that using some internal API on Hibernate? I didn't find it by googling it..

Fiorenzo

Yoann Rodiere

unread,
Mar 9, 2023, 9:13:21 AM3/9/23
to fiore...@gmail.com, Quarkus Development mailing list
Hello,

This mailing list is for discussions about the development of Quarkus itself.

For usage questions, see https://quarkus.io/support/

Cheers,

Yoann Rodière
Hibernate Team


--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/CAC5yyzWqwvO5kcKv3YbgE1urUozvJhDrWwPiMeNuztZjYuUBNg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages