Hi,
I hope i have understood your question correctly, you want to find an Attribute entity using the EntityManager.find(), is that correct ?
Assuming it is, you can only use EntityManager.find() if you know the primary key of the entity (Id in your case). You have stated that you only know the the Material_Id and the Name, you will probably have to use a query such as:
Code:
List result = em.createQuery("FROM Atrribute a WHERE a.name = :name").setParameter("name", "<name you know>")
.getResultList();
Cheers,
Andy