-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Silently failing many-to-one at startup
PostPosted: Tue Apr 06, 2004 10:12 am 
Beginner
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 07, 2004 7:10 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hibernate does not silently fail.
Check the logs, check for any exception you could have swallowed.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.