EntityManager over SessionFactory

Hi all,
I need a help about hibernate, I have very very little knowledge about it.
I was using jboss plugin of eclipse to generate Dao/Home classes for tables.
All the alternatives whatever I have found till now, gives me a home class with SessionFactory for me, but what I need is DAOs with EntityManager.

Can any one of you show some light on this topic.

If you are using Java EE, you can simply inject the EntityManager in your DAO beans. What exactly were you generating?