Beginner |
|
Joined: Wed Nov 26, 2003 9:04 am Posts: 23
|
I've got some crazy weirdness going on.
I've a CreditCard persistant class and CreditCardType..
/**
* @hibernate.many-to-one
* class="foo.bar.CreditCardBrand"
* column="card_type_id" cascade="none"
* @return foo.bar.CreditCardBrand
*/
public CreditCardBrand getCardBrand() {
return cardBrand;
}
public void setCardBrand(CreditCardBrand cardBrand) {
this.cardBrand = cardBrand;
}
I changed creditCardType to CreditCardBrand in case using Type was buggering things but alas no.
Here's the generated mapping.
<many-to-one
name="cardBrand"
class="foo.bar.CreditCardBrand"
cascade="none"
outer-join="auto"
update="true"
insert="true"
column="card_type_id"
/>
I'd like to give you more info but I haven't any , when i remove the mapping everything loads. But when its in there the whole model fails.
Many thanks in advance for an uncharacteristic response
Mark
|
|