If you pass null as your set of fields, it will select all fields. Jeremy
On Wed, Jan 20, 2016 at 9:47 AM, Gabriel Oberreuter <goberreu...@gmail.com> wrote: > Hi all, > > Do anyone knows how to get all fields of a given Entity programmatically? I > can't seem to find that functionality of just lack the java knowledge to > just do it. > > I am creating a query and want to select "all" current fields of an entity. > When executing the query, I can pass a Set of fields to select. I need > something of the like: > > Set<String> fieldsOfEntityInvoice = Invoice.getAllEntityFields(); > > For now, I am building the Set manually, adding each field of the entities > using set.add("invoiceId"), for example. > > Thanks > > > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/get-all-fields-of-an-Entity-tp4676259.html > Sent from the OFBiz - User mailing list archive at Nabble.com. >