-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate reading propertyName instead of column_name
PostPosted: Mon Jun 28, 2010 7:54 am 
Newbie

Joined: Mon Jun 28, 2010 7:20 am
Posts: 1
Hi, I have been using the following in Telephone embeddable domain object.

@Column(name = "telephone_number")
private String telephoneNumber;

This was working fine when I used 3.3.2 version. After I have upgraded to 3.5.2 Final the hibernate API was using telephoneNumber to look for the column name in the Oracle table, and it started failing with "DB column doesn't exist" error.

I had to use @AttributeOverrides along with the @embedded to overcome this issue. Now my modified code looks like

@Embedded
@AttributeOverrides( { @AttributeOverride(name= "telephoneNumber", column= @Column( name = "telephone_number")) })
private Telephone tnInfo;

I am not sure why suddenly my original code was broken with Hibernate 3.5.2 Final upgrade. I just wanted to know if someone else has encountered similar issue, so that I will get convinced that Hibernate 3.5.2 has an issue.

I have also raised Hibernate Jira ticket HHH-5344 requesting a fix from Hibernate.

Appreciate your response on this.

Thank you.


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

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.