Unlike BMP beans, it also requires the developer to write the persistence logic.
与BMPbean 不同的是,它还要求开发人员编写持久性逻辑。
Because of this it's important to limit the business logic and persistence logic in the backing beans.
因此,限制backingbeans中的业务逻辑和持久性逻辑很重要。
The CloudResource extends the managed resource to include distributed transactions and state persistence logic, if needed.
CloudResource扩展了托管资源,在需要时支持分布式事务和状态持久化逻辑。
With container Managed persistence (CMP) entity beans, the container generates the persistence code as well as managing the persistence logic.
使用容器管理的持久性(Container Managed Persistence,CMP)实体bean时,容器生成持久性代码并管理持久性逻辑。
With BMP entity beans, developers must write the persistence logic but the container determines when to call the methods defined by the developer.
使用BMP实体bean时,开发人员必须编写持久性逻辑,而容器则确定何时调用由开发人员定义的方法。
They don't want to mix their persistence logic with their domain entities. They want to use POCO objects for their entities.
他们不想将他们的持久化逻辑与域实体混合起来,他们想为他们的实体使用POCO对象。
A common architectural strategy is to layer your system, separating your user interface logic, business logic, system logic, and persistence logic from each other.
通常的构造策略是将系统分层,将用户界面逻辑、商业逻辑、系统逻辑和持久性逻辑彼此分开。
Because developers have complete control over the data access mechanism used within a session bean, data access and persistence logic can be optimized for certain tasks.
因为开发人员完全控制在会话bean中使用的数据访问机制,所以可以针对某些任务优化数据访问和持久性逻辑。
If you have an operation that contains entirely persistence logic (no business logic), consider moving it into the database as a stored procedure and invoke it via Spring JDBC.
如果你有一个包含完整持久性逻辑(并非业务逻辑)的操作,考虑将它作为存储过程移到数据库中,并通过SpringJDBC来调用。
This approach perfectly epitomizes the DRY (Don't Repeat Yourself) principle, since the persistence logic is implemented once and mixed in domain classes as many times as needed.
这种方式完美地诠释了DRY (DontRepeat Yourself)准则,因为持久化逻辑只实现一次,在需要的时候可以多次混合到领域类中。
Setting up connectivity to a data store, finding all classes annotated as entities, and configuring the persistence logic to bind these classes to entities in the data store is not a quick operation.
建立到数据存储的连接、查找标注为实体的所有类、配置持久化逻辑以将这些类绑定到数据存储中的实体,整个过程不可能快速完成。
Setting up connectivity to a data store, finding all classes annotated as entities, and configuring the persistence logic to bind these classes to entities in the data store is not a quick operation.
建立到数据存储的连接、查找标注为实体的所有类、配置持久化逻辑以将这些类绑定到数据存储中的实体,整个过程不可能快速完成。
应用推荐