Author: epbernard
Date: 2009-07-08 14:11:20 -0400 (Wed, 08 Jul 2009)
New Revision: 17054
Modified:
jpamodelgen/trunk/generator/src/main/java/org/hibernate/jpa/metamodel/ap/annotation/MetaEntity.java
Log:
Support for access type for entity and sub entity
Modified:
jpamodelgen/trunk/generator/src/main/java/org/hibernate/jpa/metamodel/ap/annotation/MetaEntity.java
===================================================================
---
jpamodelgen/trunk/generator/src/main/java/org/hibernate/jpa/metamodel/ap/annotation/MetaEntity.java 2009-07-08
18:10:15 UTC (rev 17053)
+++
jpamodelgen/trunk/generator/src/main/java/org/hibernate/jpa/metamodel/ap/annotation/MetaEntity.java 2009-07-08
18:11:20 UTC (rev 17054)
@@ -212,6 +212,7 @@
@Override
public MetaAttribute visitPrimitive(PrimitiveType t, Element p) {
+ //FIXME consider XML
if ( p.getAnnotation( Transient.class ) == null ) {
return new MetaSingleAttribute( parent, p, TypeUtils.toTypeString( t ) );
}
@@ -223,6 +224,7 @@
@Override
public MetaAttribute visitDeclared(DeclaredType t, Element p) {
+ //FIXME consider XML
if ( p.getAnnotation( Transient.class ) == null ) {
TypeElement e = ( TypeElement ) pe.getTypeUtils().asElement( t );
String collection = COLLECTIONS.get( e.getQualifiedName().toString() ); // WARNING:
.toString() is necessary here since Name equals does not compare to String
Show replies by date