[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2652) character x character varying

Frederico (JIRA) noreply at atlassian.com
Fri Jun 1 15:56:04 EDT 2007


character x character varying
-----------------------------

                 Key: HHH-2652
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2652
             Project: Hibernate3
          Issue Type: Bug
          Components: core
    Affects Versions: 3.2.4.sp1
         Environment: Hibernate 3.2.4.sp1, Postgresql 8.1
            Reporter: Frederico


My problem: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2641?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Solution: 
change types of the primary key's to 'character varying'.

hibernate works in different way when the primary key's are character, in my problem this happens:
12:21:43,427 DEBUG CollectionLoadContext:262 - 2 collections were found in result set for role: entidades.bdufop.Sistema.aplicacoes
12:21:43,432 DEBUG CollectionLoadContext:206 - collection fully initialized: [entidades.bdufop.Sistema.aplicacoes#ACESSO]             <----
12:21:43,436 DEBUG CollectionLoadContext:206 - collection fully initialized: [entidades.bdufop.Sistema.aplicacoes#ACESSO         ]    <----
12:21:43,441 DEBUG CollectionLoadContext:272 - 2 collections initialized for role: entidades.bdufop.Sistema.aplicacoes 

So, I think that java.lang.String and java.lang.Character are differents, but not to character and to character varying...space placed for the size of character is that it varies or not, so....hibernate would have or not to work with the type (SGDB) to character as it works with character varying?!

I think too....this is not a hibernate user forum topic!

Fred

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

        



More information about the hibernate-issues mailing list