.athus.modelosquot;,
quot;br.com.athus.modelos.movimentacaoquot;};
@Override
protected SessionFactory buildSessionFactory() throws Exception {
ArrayListlt;Classlt;?gt;gt; classes = new ArrayListlt;Classlt;?gt;gt;();
ClassPathScanningCandidateComponentProvider scanner =
new ClassPathScanningCandidateComponentProvider(false);
scanner.addIncludeFilter(new AnnotationTypeFilter(Entity.class));
scanner.addIncludeFilter(new AnnotationTypeFilter(Embeddable.class));for(String pacote : PACOTES_SCAN)
{
for (BeanDefinition bd : scanner.findCandidateComponents(pacote)) {
try {
String name = bd.getBeanClassName();
classes.add(Class.forName(name));
} catch (Exception e) {
System.err.println(e);
}
}
}
//Registering found classess
setAnnotatedClasses(classes.toArray(new Class[classes.size()]));
return super.buildSessionFactory();
}
so, now i need to do the same on eclipselink.
there's a way to do this?
thanks
.athus.modelos.**.*lt;/valuegt;
lt;/listgt;
lt;/propertygt;
lt;/beangt;yeah, i did it, but i'm not using hibernate anymore
i'm using eclipselink |