i have 2 entity classes
(abbreviated)
@Entity
@Table(name = "CUSTOMER_ADDRESSES",schem
a="TEST")
class Address {
@Column(name = "NAME", nullable = false)
private String name;
@JoinColumn(name = "STATE", referencedColumnName = "STATE")
@ManyToOne
private StateLookup state;
}
@Entity
@Table(name = "STATE_LOOKUP",schema="TES
T")
class Address {
@Id
@Column(name = "STATE", nullable = false)
private String state;
@Column(name = "DESCRIPTION", nullable = false)
private String description;
@Override
public String toString() {
return this.getState();
}
}
my jsf page binds a table to the entity class and right now i am displaying the state just fine. however i really want to display the state.description. i tried to use the obvious text="#{currentRow.value['
state.desc
ription']}
" but netbeans throws a property not found exception.
<webuijsf:tableColumn headerText="STATE_DESCRIPT
ION" height="52" id="tableColumn2" noWrap="true" sort="state" valign="middle" width="250">
<webuijsf:staticText id="staticText2" text="#{currentRow.value['
state']}"/
>
</webuijsf:tableColumn>
this has to be a very basic thing to do, any help is appreciated.
Start Free Trial