ModelEngine-Group / ModelEngine-Group/fit-framework
支持 Jpa 事务管理器
Open
Nobody has claimed this yet.
from: gitcode
in: fit
status: waiting-for-internal-feedback
- Dominant language
- Java
- Stars
- 2.1k
- Forks
- 335
- PR merge metrics
- No merged PRs in 30d
Description
当前事务管理器的接口定义存在问题,强依赖 DataSource
public interface TransactionManager {
/**
* 获取事务管理程序所使用的数据源。
*
* @return 表示数据源的 {@link DataSource}。
*/
DataSource dataSource();
实际上 Jpa 事务管理器不感知 DataSource,希望能够重构相关接口以支持对接 Jpa
该问题需要先内部分析一下,以确认当前的抽象层次的合理性。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by analyzing the TransactionManager interface and its DataSource dependency, as shown in the issue. Determine whether the current abstraction can represent a JPA transaction manager without requiring a DataSource; done means the interface design supports that integration after the internal abstraction review.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100