Hi,
Are there equivalent annotations for the XML mapping stuff in a mapping file (like
node,
embed-xml, etc.). Would of course only make sence if you want to use DOM4J and POJO entity modes at the same time (alternating). Use case - XML data export/import.
Say it in other words: Can I write something like:
Code:
@Entity
@org.hibernate.annotations.Entity(
node="flight"
)
public class Flight {
Long id;
@Id
@Node="@id"
public Long getId() { return id; }
public setId(Long id) { this.id = id; }
...
}
Regards,
Landels