Problem with JPA2 mutator

4 views
Skip to first unread message

ggran...@gmail.com

unread,
Feb 13, 2017, 6:52:21 PM2/13/17
to minuteproject
Hi Florian,

I corrected what I think is a bug in DomainEntityJPA2Annotation.vm.  On line 727, the template reads:

    public void set${columnClass}_ ($columnType $columnVar) {
        this.${columnVar}_ =  ${columnVar}_;
    }

I think it should read:

    public void set${columnClass}_ ($columnType $columnVar) {
        this.${columnVar}_ =  ${columnVar};    // NOTE: the missing underscore which now references incoming parameter
    }


Reply all
Reply to author
Forward
0 new messages