sberan/Fixy — pull request #2 by mmounirou (2012-03-01 09:23:30+00:00)
Title: Error during persistance of entiy that use an Embeddable element

First i apologize for my english . Do not hesitate to correct me .
During the fixy yaml loading , fixy try to persist all elements present in the yaml file whenever there are an entity or not .
So when it try to persist an @Embeddable element i git the following error .

```java
java.lang.IllegalArgumentException: Unknown entity: com.petstore.Adress
at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:840)
at com.pearson.fixy.Fixy.persistEntities(Fixy.java:124)
at com.pearson.fixy.Fixy.load(Fixy.java:131)
```

I made a first soluce that consist to only persist class that have @Entity annotation .
But the solution is not ideal :
-> It work only for project using JPA annotation ; not implementation specific annotation (hibernate , eclipselink ....)
-> It doesn't work for project using xml based mapping .

Thanks .