有没有办法使用Spring的LocalContainerEntityManagerFactoryBean和Hibernate在包中排除实体?如果重要的话,我正在使用spring-data。我想用另一个数据源管理被排除的实体。我知道你可以使用hibernateSessionFactory(Ignore some classes while scanning PackagesToScan)来完成它,但如果可能的话我更愿意使用jpa。
这是我的配置:
var hoi = document.getElementById('hoi')
var square = document.getElementById('box')
var position = null;
var x = 0;
function animate() {
if(position == 'right') {
x += 1;
square.style.left = x + 'px';
}
requestAnimationFrame(animate)
}
animate();
window.addEventListener('keydown', function(e){
if(e.keyCode) {
position = 'right';
}
})