I am using Oracle sequences succesfully with my domain objects.
The syntax you describe is not correct. There is no hostname needed when specifying the sequence.
Here's how i use sequences:
First create the sequence,
CREATE SEQUENCE COUNTRY_SEQ INCREMENT BY 1 START WITH 1 CACHE 5 ;
Then, in my xml file (this sequence is for countries):
Code:
<hibernate-mapping>
<class name="com.amex.ifst.domain.Country" table="COUNTRY">
<id name="countryId" type="int" unsaved-value="-1">
<column name="COUNTRY_ID" precision="9" scale="0" />
<generator class="sequence">
<param name="sequence">country_seq</param>
</generator>
</id>
<property name="countryCode" type="string">
<column name="COUNTRY_CODE" length="2" not-null="true" />
</property>
HTH,
R