Hibernate version:2.1
i have a table without primary key( is a historical table ), and
that is the map created by ReverseGenerator.bat
Mapping documents: <hibernate-mapping> <class name="cl.di.sone.servicio.AuditOnlineServicio" schema="online2" table="AUDIT_SERVICIO"> <property column="RUT" length="12" name="rut" type="java.lang.Long"/> <property column="FECHA_CONEXION" length="7" name="fechaConexion" type="java.util.Date"/> <property column="IP_MAQUINA" length="20" name="ipMaquina" type="java.lang.String"/> <property column="ID_SERVICIO" length="10" name="idServicio" type="java.lang.Long"/> </class> </hibernate-mapping>
Name and version of the database you are using: oracle 8i
that leave me clear, i can't have a mapping without *id*
Debug level Hibernate log excerpt: INFO Configuration:350 - Mapping resource: cl/ucn/di/Sone/autentificar/AuditActivaOnline.hbm.xml ERROR XMLHelper:48 - Error parsing XML: XML InputStream(5) The content of element type "id" is incomplete, it must match "(column?,generator)".
but my doubt is, i can map a table whitout primary key? and how?
please so sorry my language...
|