Automatic mapping for bean properties.
--------------------------------------
Key: HHH-2287
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2287
Project: Hibernate3
Type: Improvement
Components: metamodel, core
Versions: 3.2.2
Environment: Does not matter
Reporter: Marcos Silva Pereira
Priority: Trivial
Hibernate JPA support can mapping properties without an annotation, in other words, the
properties are automatically mapped and, if I don't want to map some property, I must
annotate it with the @Transient annotation.
I really think that automatic properties mapping could be a great enhancement to make XML
mapping more simple. Per instance, if I have the following class (mapped using
annotations):
@Entity
public class MyEntity {
@Id
private Long id;
// the properties below are mapped
// without annotations
private String name;
private String email;
private int age;
// gets, sets and other stuff.
}
The equivalent XML for this class would be:
<hibernate-mapping>
<class name="MyEntity" automatic-property-mapping="true">
<id name="id">
<generator class="native" />
</id>
</class>
</hibernate-mapping>
Sorry if it was duplicated but I can't found something like this here.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira