Skip to Content
1
Dec 05, 2018 at 11:41 PM

What is the best practice in flexible search?

498 Views

Hi,

I have a doubt, later of an audit performed on my company. When I create a flexible search query in a DAO class, it is considered good practice to use aliases for types and attributes? Or, should I should refer directly to the name of the Type:

For example, should I do this?

 select {p.pk}, {p.name} from {Product as p}

Or, is this better?

 select {Product.pk}, {Product.name} from {Product}

regards!

Amy