gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enis Soztutar (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (GORA-15) Primitive types cannot be used as keys in DataStore
Date Wed, 17 Nov 2010 06:46:14 GMT

     [ https://issues.apache.org/jira/browse/GORA-15?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Enis Soztutar resolved GORA-15.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.1-incubating

I have committed this with the below javadoc. Thanks guys. 

{code}
  /**
   * Returns a new instance of the key object. If the object cannot be instantiated 
   * (it the class is a Java primitive wrapper, or does not have no-arg 
   * constructor) it throws an exception. Only use this function if you can 
   * make sure that the key class has a no-arg constructor.   
   * @return a new instance of the key object.
   */
  public abstract K newKey() throws IOException;
{code}

> Primitive types cannot be used as keys in DataStore
> ---------------------------------------------------
>
>                 Key: GORA-15
>                 URL: https://issues.apache.org/jira/browse/GORA-15
>             Project: Gora
>          Issue Type: Bug
>          Components: storage
>    Affects Versions: 0.1-incubating
>            Reporter: Enis Soztutar
>            Assignee: Enis Soztutar
>             Fix For: 0.1-incubating
>
>         Attachments: gora-15_v1.patch
>
>
> We cannot use primitive wrapper classes(Long, Integer, etc) in DataStore as keys since
BeanFactoryImpl needs a no-arg constructor.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message