Skip to content

Fineract Asset Externalization models#3185

Merged
galovics merged 2 commits intoapache:developfrom
b0c1:FINERACT-1926-AssetExternalization-ModuleSeparation
May 16, 2023
Merged

Fineract Asset Externalization models#3185
galovics merged 2 commits intoapache:developfrom
b0c1:FINERACT-1926-AssetExternalization-ModuleSeparation

Conversation

@b0c1
Copy link
Copy Markdown
Contributor

@b0c1 b0c1 commented May 15, 2023

  • Liquibase database model
  • JPA model
  • API endpoint without implementation

@b0c1 b0c1 force-pushed the FINERACT-1926-AssetExternalization-ModuleSeparation branch 2 times, most recently from 9cd9864 to 2d74ab2 Compare May 16, 2023 08:02
- [x] Liquibase database model
- [x] JPA model
- [x] API endpoint without implementation
- [x] API endpoint requirements
  - [x] Json Serialization and Deserialization and dependencies
  - [x] New Authentication check interface to the core level
  - [x] CommandWrapperBuilder and dependencies
@b0c1 b0c1 force-pushed the FINERACT-1926-AssetExternalization-ModuleSeparation branch from 2d74ab2 to deb0801 Compare May 16, 2023 08:46
@galovics galovics force-pushed the FINERACT-1926-AssetExternalization-ModuleSeparation branch from b867212 to 966dae5 Compare May 16, 2023 15:28
@galovics galovics force-pushed the FINERACT-1926-AssetExternalization-ModuleSeparation branch from 966dae5 to 8afbf3b Compare May 16, 2023 15:50
@galovics galovics merged commit 9fee79e into apache:develop May 16, 2023
}

@POST
@Path("/transfers/loans//external-id/{loanExternalId}")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double / in the path.

public class ExternalTransferLoanMappingData {

private final Long loanId;
private final String externalId;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use ExternalId class

@Data
public class ExternalTransferOwnerData {

private final String externalId;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use ExternalId class

* placed in the fineract-core module.
*/
@MappedSuperclass
public abstract class AbstractAuditableCustom extends AbstractPersistableCustom implements Auditable<Long, Long, LocalDateTime> {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use AbstractAuditableWithUTCDateTimeCustom instead

@Getter
@Setter
@NoArgsConstructor
public abstract class AbstractPersistableCustom implements Persistable<Long>, Serializable {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have two AbstractPersistableCustom now, do we need both of them?

@Entity
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Table(name = "m_external_asset_owner")
public class ExternalAssetOwner extends AbstractAuditableCustom {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use AbstractAuditableWithUTCDateTimeCustom instead

public class ExternalAssetOwner extends AbstractAuditableCustom {

@Column(name = "external_id", nullable = false, length = 100, unique = true)
private String externalId;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use ExternalId class

@Table(name = "m_external_asset_owner_transfer")
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Entity
public class ExternalAssetOwnerTransfer extends AbstractAuditableCustom {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use AbstractAuditableWithUTCDateTimeCustom instead

@Table(name = "m_external_asset_owner_transfer_loan_mapping")
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Entity
public class ExternalAssetOwnerTransferLoanMapping extends AbstractAuditableCustom {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use AbstractAuditableWithUTCDateTimeCustom instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants