Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DataSource with just one field (non-primarykey)

    Hey guys,

    Well, I have a table with just one column that is not a primary key. This column is only a text column.

    My question is, the following error is because I do not have a primary key?

    Operation type 'fetch' not supported by this DataSource (ContractAnnexSignerDS)
    Here, my descriptor:

    Code:
    <DataSource
        ID="ContractAnnexSignerDS"
        serverType="generic"
        mappedBeanClassName="com.sca.server.transfer.ContractAnnexSignerTransferData"
        serverConstructor="com.sca.core.client.datasource.ContractAnnexSignerDS">
        
        <fields>
            <field
                name="name"
                primaryKey="false"
                type="text"
                candEdit="true"
                escapeHTML="true"
                required="true"
                length="300"/>
        </fields>
        
    </DataSource>

    #2
    No, see the server log, the class you have specified as serverConstructor does not appear to have an implementation for the "fetch" operation. You may have subclassed just BasicDataSource, whereas from the properties you're setting, you probably intended to subclass either HibernateDataSource or JPADataSource.

    Comment

    Working...
    X