Just a simple question..name-pattern?

Hi there,

I just want to understand, what is a “name-pattern”?
Why we need to use a name-pattern for an entity?
What sense does it have?

Thanks

Hi,

The @NamePattern annotation is a kind of toString() equivalent for an entity that provides a meaningful instance representation in UI.

For example, the drop-down list of customers will display John Smith instead of com.company.sales.entity.Customer-5effc3b8-9445-2b86-cc30-92aabc7c3a6a [detached].

Ah,

okay, thanks, I understand now

A post was split to a new topic: Override the @NamedPattern annotation programmatically