sunr wrote:
again i dont' know what to do with these:
1. <many-to-one fetch="join" outer-join="true" column="CHANNEL" access="field" name="channel" insert="false" update="false"/>
@ManyToOne
@JoinColumn(insertable=false, updatable=false, name="CHANNEL")
but what about fetch="join" outer-join="true" ??
@Fetch
sunr wrote:
2. <column name="QUANTITY" sql-type="NUMBER(5)" not-null="false"/>
@Column(nullable = true)
sql-type ??
@Type
sunr wrote:
3.
<composite-id unsaved-value="none" access="field" name="pk">
<key-property column="PAME_ID" access="field" name="pameId"/>
<key-property column="SERVICE_ID" access="field" name="serviceId"/>
</composite-id>
composite keys ???
@Embeddable, @EmbeddedId or @IdClass depending on which strategy you choose.
sunr wrote:
it would be nice to have some kind of a guide to transform xml into annotations...
thank you
All the information is in the online doc. I recommend reading the whole document instead of trying to find things as you go. If you need more detailed information I recommend getting "Java Persistence with Hibernate" (see link at top of page). There are tons of examples in the book often with xml and annotation mapping just next to each other.
Good luck :)
--Hardy