Im trying to get the Hypersonic DB adaptor to support auto increment, which
is possible in Hypersonic.
However, its getIDMethodSQL(Object obj) method obj parameter is passed in as
null
Seems like a bug that the object is passed in as null, but I've seen this
work fine with other dbs, see below
Is there anyway to know which table Im working with if the Object passed in
is null?
public String getIDMethodSQL(Object obj) // obj == null
{
return "select identify() from " + table_name; // where does the
table_name come from?
}
In my testcase, the table is a variant of TURBINE_USER
<table name="TURBINE_USER" idMethod="native">
<column name="USER_ID" required="true" primaryKey="true"
autoIncrement="true" type="INTEGER"/>
...
With Oracle, the parameter is passed in fine:
public String getIDMethodSQL(Object sequenceName)
{
return ("select " + sequenceName + ".nextval from dual");
}
So this leads me to believe that Im missing something in the adaptor or
template configuration
--
To unsubscribe, e-mail: <mailto:turbine-torque-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-dev-help@;jakarta.apache.org>