my xml file format is
<?xml version="1.0" encoding="UTF-8"?>
<entity-mappings xmlns="http://www.eclipse.org/eclipselink/xsds/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eclipse.org/eclipselink/xsds/persistence/ormhttp://www.eclipse.org/eclipselink/xsds/eclipselink_orm_2_4.xsd">
<entity class="com.ofss.fc.domain.account.entity.accountcreditmatrix.CreditMetricDetails">
<table name="FLX_AC_ACCT_CREDIT_MATRIX_DTLS"/>
<attributes>
<embedded-id attribute-type="com.ofss.fc.domain.account.entity.accountcreditmatrix.CreditMetricDetailsKey" name="key">
<attribute-override name="accountId">
<column name="ACCOUNT_ID"/>
</attribute-override>
<attribute-override name="accountType">
<column name="ACCOUNT_TYPE"/>
</attribute-override>
<attribute-override name="effectiveDate">
<column name="EFFECTIVE_DATE"/>
</attribute-override>
<attribute-override name="matrixIdvalue">
<column name="MATRIX_ID_VALUE"/>
</attribute-override>
<attribute-override name="classification">
<column name="Classification"/>
</attribute-override>
</embedded-id>
I would like to print attribute-override and column value.
I have tried
String expression = "/entity-mappings/entity/table/@name";
it works fine
output FLX_AC_ACCT_CREDIT_MATRIX_DTLS
if I go a level down
String expression = "/entity-mappings/entity/table/attributes/embedded-id/attribute-override/@name";
it does print the value of attribute-override
please can I know the issue
thanks.