forrestzhu / odata4j

Automatically exported from code.google.com/p/odata4j
0 stars 0 forks source link

JPA - No support for BasicTypeImpl #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.@Entity contains a Map<String,String>
2.It is annotated with @ElementCollection and @CollectionTable
3.Fails within JPAEdmGenerator.. 
 It JPAEdmGenerator only deals with EntityTypes and does not understand javax.persitence.metamodel.BasicType.

JPAEdmGenerator.getEntitySetName(EntityType) only deals with EntityType.

What is the expected output? What do you see instead?
Should be able to deal with BasicTypes or most defined within 
javax.persitence.metamodel

Please use labels and text to provide additional information.
Example definition 

@ElementCollection
@CollectionTable(joinColumns=@JoinColumn(name="string_id")
public Map<String,String> options;

More information regarding JPA java.util.Map can be found
http://hwellmann.blogspot.com/2010/07/jpa-20-mapping-map.html

Original issue reported on code.google.com by alpivo...@gmail.com on 8 Sep 2011 at 2:01