-->
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.  [ 4 posts ] 
Author Message
 Post subject: OneToOne internal corruption ? please see
PostPosted: Wed May 09, 2007 2:29 pm 
Newbie

Joined: Wed May 09, 2007 2:25 pm
Posts: 7
Folks,

There was too much data to re-type. I put it in a JIRA for all to see.

http://opensource.atlassian.com/project ... se/ANN-611

All I am doing is instrumenting/leveraging/querying the internals of the annotation at bootstrap time...

And I am seeing ManyToOneType being binded/coupled with OneToOneType

Can I get some feedback on this?

Much appreciated.

_________________
best regards
Ken


Top
 Profile  
 
 Post subject: Re: OneToOne internal corruption ? please see
PostPosted: Wed May 09, 2007 2:50 pm 
Newbie

Joined: Wed May 09, 2007 2:25 pm
Posts: 7
This post offered no relief.

http://forum.hibernate.org/viewtopic.php?t=962091

Seems I am referencing a non-pk column.

Any help is appreciated.

_________________
best regards
Ken


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 10, 2007 12:17 pm 
Newbie

Joined: Wed May 09, 2007 2:25 pm
Posts: 7
So is this by design?.. that hibernate does not want developers to be navigating across classes like this?

Gavin or Christian, can you offer me a solution please?

Thank You

_________________
best regards
Ken


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 10, 2007 1:43 pm 
Newbie

Joined: Wed May 09, 2007 2:25 pm
Posts: 7
// http://forums.hibernate.org/viewtopic.p ... 190cfc4e60
// Danger Will Robinson... this does not support multiple
// class references across the OneToOne relationship, Dr. Hack
Class returnType = readMethod.getReturnType();
String ognlUsableProperty = "";
for ( int i = 0; i < returnType.getDeclaredMethods().length; i++ ) {
if ( returnType.getDeclaredMethods()[i].getReturnType().equals(propertyField.getDeclaringClass()) ) {
Method theProperty = returnType.getDeclaredMethods()[i];
ognlUsableProperty = org.trails.component.Utils.unCamelCase(theProperty.getName()).substring(3); // strips preceding 'get'
break;
}
}

_________________
best regards
Ken


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.