ModelEngine-Group / ModelEngine-Group/fit-framework

支持 Jpa 事务管理器

Open
#72 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.