I've many codes table with 10-100 rows in each that almost never changed
in Ejb 2.1 no one would reccomand to use entity beans to represent those tables
what about EJB 3.0? can I cache entity beans in ejb 3.0?
or should I use reguler JDBC?
you can use ejb3 entities, but you must use hibernate specific annotations, so you will not be portable:
import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; @Entity @Cache(usage=CacheConcurrencyStrategy.TRANSACTIONAL) public class AEntity