getting parent component name

2010-04-21 Thread Christopher Snow
Is it possible to get the name of the component that an entity belongs too? E.g. something like: Delegator delegator = (Delegator) request.getAttribute(delegator); ModelReader reader = delegator.getModelReader(); ModelEntity entity = reader.getModelEntity(myEntity); // return the name of the

Re: getting parent component name

2010-04-21 Thread Adrian Crum
You can get the file's location - look at Entity Reference in Web Tools. -Adrian Christopher Snow wrote: Is it possible to get the name of the component that an entity belongs too? E.g. something like: Delegator delegator = (Delegator) request.getAttribute(delegator); ModelReader reader =

Re: getting parent component name

2010-04-21 Thread Bob Morley
on something in the model entity definition itself such as the package-name? This is likely spotty as well; but I know we use this in-house when doing code generation on the entity model. -- View this message in context: http://n4.nabble.com/getting-parent-component-name-tp2019708p2019983.html Sent