Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# npm always writes this file with LF; keep it that way on every OS.
package-lock.json text eol=lf
3 changes: 2 additions & 1 deletion backend/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/mvnw text eol=lf
*.cmd text eol=crlf
# Stored exactly as generated by the Maven wrapper (CRLF); no conversion, so Git never shows phantom changes.
/mvnw.cmd -text
20 changes: 13 additions & 7 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,24 @@
<version>0.0.1-SNAPSHOT</version>
<name>backend</name>
<description>API for employees to register their daily tasks</description>
<url/>
<url>https://github.com/pitercoding/worklog</url>
<licenses>
<license/>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
</license>
</licenses>
<developers>
<developer/>
<developer>
<id>pitercoding</id>
<name>Piter Gomes</name>
<url>https://github.com/pitercoding</url>
</developer>
</developers>
<scm>
<connection/>
<developerConnection/>
<tag/>
<url/>
<connection>scm:git:https://github.com/pitercoding/worklog.git</connection>
<developerConnection>scm:git:https://github.com/pitercoding/worklog.git</developerConnection>
<url>https://github.com/pitercoding/worklog</url>
</scm>
<properties>
<java.version>21</java.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ private ActivityEntryMapper() {
}

/**
* ActivityEntryMapper: converte ActivityEntry → ActivityEntryResponse
* Converts an {@link ActivityEntry} into an {@link ActivityEntryResponse}.
*/
public static ActivityEntryResponse toResponse(ActivityEntry entry) {
if (entry == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private LookupMapper() {
}

/**
* LookupMapper: converte entidades de lookup → LookupItem / SubactivityItem
* Converts lookup entities into {@link LookupItem} and {@link SubactivityItem}.
*/

public static LookupItem toItem(Program program) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private WorkDayMapper() {
}

/**
* WorkDayMapper: converte WorkDay + entries → WorkDayResponse
* Converts a {@link WorkDay} and its entries into a {@link WorkDayResponse}.
*/

public static WorkDayResponse toResponse(WorkDay workDay, ActivityEntry currentEntry, List<ActivityEntry> entries) {
Expand Down
3 changes: 2 additions & 1 deletion backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ spring.datasource.password=${DB_PASSWORD}
spring.datasource.driver-class-name=org.postgresql.Driver

# JPA
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
# The schema is owned by Flyway (src/main/resources/db/migration); Hibernate only validates it.
spring.jpa.hibernate.ddl-auto=validate
# The mappers read lazy relations while building responses, so the session stays open during the request.
spring.jpa.open-in-view=true
spring.jpa.show-sql=${SHOW_SQL:false}
spring.jpa.properties.hibernate.format_sql=true

Expand Down
8 changes: 0 additions & 8 deletions frontend/src/app/core/http/api-client.services.ts

This file was deleted.