db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Brittis (JIRA)" <j...@apache.org>
Subject [jira] Created: (OJB-45) DescriptorRepository.getAllMappedColumns() does not work properly if two or more classes are mapped to the same table but have different field descriptors for a single column.
Date Thu, 02 Jun 2005 23:58:51 GMT
DescriptorRepository.getAllMappedColumns() does not work properly if two or more classes are
mapped to the same table but have different field descriptors for a single column.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

         Key: OJB-45
         URL: http://issues.apache.org/jira/browse/OJB-45
     Project: OJB
        Type: Bug
  Components: PB-API  
    Versions: 1.0.x CVS    
 Environment: Windows XP Pro with Tomcat 5 running with ojb 1.0rc6
    Reporter: Anthony Brittis


DescriptorRepository.getAllMappedColumns() does not work properly if two or more classes are
mapped to the same table but have different field descriptors for a single column.

Since this method caches field descriptors using the column name as the key, only one class-descriptors
version will be stored and used.  

If two or more classes are mapped to the same table, but have different field descriptors
for a column, only one of the field descriptors will "win-out" and be used by the rest of
the classes.  This is a particular problem if you want to use different jdbc-type and conversion
attribute values.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message