db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Ease of use for annotations
Date Fri, 29 Jun 2007 20:56:48 GMT
Another thing about annotations <--> xml.

In xml, we have
<field name="department" column="DEPARTMENT"/>
or
<field name="department" >
   <column name="DEPARTMENT"/>
</field>


In annotations, it's
@Field (columns=@Column(name="DEPARTMENT"))
Department department;

or
@Column(name="DEPARTMENT")
Department department;

It would be nice if we could have @Column("DEPARTMENT") instead of  
@Column(name="DEPARTMENT").

Also @Field (column="DEPARTMENT")

Craig

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message