Skip to content

Salvatore's Exercise - Complete#7

Open
Gladiatrix4 wants to merge 1 commit intoih-java-08-25:mainfrom
Gladiatrix4:main
Open

Salvatore's Exercise - Complete#7
Gladiatrix4 wants to merge 1 commit intoih-java-08-25:mainfrom
Gladiatrix4:main

Conversation

@Gladiatrix4
Copy link

No description provided.

return transactionService.create(transaction);
}

@GetMapping("/all")
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to use /all, should be just transactions

import java.util.UUID;

@Entity
@Table(name = "Statement")
Copy link
Contributor

Choose a reason for hiding this comment

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

in lower case

@Column(name = "Value Date", nullable = false, length = 10)
private LocalDate valueDate;

@Column(name = "Booking Date", nullable = false, length = 10)
Copy link
Contributor

Choose a reason for hiding this comment

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

all columns should be in lower camel case, ej. booking_date


List<Transaction> findByCurrency(Currency currency);

@Query("SELECT t FROM Transaction t WHERE t.accountHolder = ?1")
Copy link
Contributor

Choose a reason for hiding this comment

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

missing also a native query

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.

2 participants