Skip to content

Commit

Permalink
Class extension and Service classes (#19)
Browse files Browse the repository at this point in the history
Service classes done.

	- Adding business-logic and Exceptions to all Service classes.

Issues: [Constrain Error while Persist and Fetch operations solved (Solution: own AbstractIdentityClass)

Signed-off-by: Kuzu <[email protected]>

---------

Signed-off-by: Kuzu <[email protected]>
  • Loading branch information
Serberx authored Dec 25, 2023
1 parent 2aa88f8 commit 0d6b1bd
Show file tree
Hide file tree
Showing 136 changed files with 3,978 additions and 818 deletions.
68 changes: 34 additions & 34 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
#!/bin/sh

echo "Pre-commit Hook"

# should work
# Store the list of staged files
staged_files=$(git diff --cached --name-only)

# Apply code formatting using spotless
./mvnw spotless:apply
status=$?

echo "This is status : $status"

#if [ "$status" = 0 ]; then
# ./gradlew checkstyleMain
# status=$?
##!/bin/sh
#
#echo "Pre-commit Hook"
#
## should work
## Store the list of staged files
#staged_files=$(git diff --cached --name-only)
#
## Apply code formatting using spotless
#./mvnw spotless:apply
#status=$?
#
#echo "This is status : $status"
#
##if [ "$status" = 0 ]; then
## ./gradlew checkstyleMain
## status=$?
##fi
#
#
#if [ "$status" -eq 0 ]; then
# ./mvnw test
# status=$?
#fi


if [ "$status" -eq 0 ]; then
./mvnw test
status=$?
fi

# If code formatting succeeded, bring stashed changes back to staged area
if [ "$status" -eq 0 ]; then
# Add only the files that were previously staged
git add $staged_files
# Proceed with commit-
exit $status
fi

#fail commit if above didnt work
exit 1
#
## If code formatting succeeded, bring stashed changes back to staged area
#if [ "$status" -eq 0 ]; then
# # Add only the files that were previously staged
# git add $staged_files
# # Proceed with commit-
# exit $status
#fi
#
##fail commit if above didnt work
#exit 1
26 changes: 7 additions & 19 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- Project from https://start.vaadin.com/project/cdd38f5c-5153-4fcb-8223-bbd4a695cb17 -->
<groupId>com.example.application</groupId>
Expand Down Expand Up @@ -170,27 +171,14 @@
<version>${spotless.version}</version>
<configuration>
<java>
<googleJavaFormat />
<indent><tabs>true</tabs><spacesPerTab>4</spacesPerTab></indent>
<googleJavaFormat/>
<indent>
<tabs>true</tabs>
<spacesPerTab>4</spacesPerTab>
</indent>
</java>
</configuration>
</plugin>
<!--plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase> verify </phase>
<configuration>
<target>
<exec executable="hooks/changegit.sh" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin-->
</plugins>
</build>

Expand Down
153 changes: 153 additions & 0 deletions src/main/dev-bundle/assets/themes/samic/components/logo_samic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions src/main/dev-bundle/config/stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,11 @@
"Frontend/generated/jar-resources/virtualListConnector.js"
],
"frontendHashes": {
"themes/samic/components/vaadin-vertical-layout.css": "44860b4c53033254a1aae77a932d6c914fc7c6b5bcef33b9f567fa229f551f84",
"themes/samic/components/vaadin-text-field.css": "0a7d91732f86b30fef5de7bcdb0f83539fea9a0e7d84c7e623f8f0f73afbfd8c",
"themes/samic/components/vaadin-text-area.css": "0a7d91732f86b30fef5de7bcdb0f83539fea9a0e7d84c7e623f8f0f73afbfd8c",
"themes/samic/components/vaadin-password-field.css": "0a7d91732f86b30fef5de7bcdb0f83539fea9a0e7d84c7e623f8f0f73afbfd8c",
"themes/samic/components/vaadin-login-overlay-wrapper.css": "fe0aa9cfd99e7a2723fcedd64078e9c4e535e408907a66da9229549026f254d1",
"buttonFunctions.js": "c852123f9b2c44eb75e555119d3e05a7dbe78b91d0ab616feb9df1654474707d",
"comboBoxConnector.js": "1d004c3dae9c76f8bcc68678abe1b8f7bdc8b456f5c9c4c7f190df8ed25d66cd",
"contextMenuConnector.js": "8960e00884b9a8b62e24be63e03fe7045dcb9b6844a8a238eb4619d5595e2cfc",
Expand All @@ -294,7 +296,7 @@
"samic": "{\n \"lumoImports\" : [ \"typography\", \"color\", \"spacing\", \"badge\", \"utility\" ],\n \"assets\" : {\n \"@fontsource/inter\" : {\n \"*.css\" : \"@fontsource/inter\",\n \"files/*\" : \"@fontsource/inter/files\"\n }\n }\n}"
},
"entryScripts": [
"VAADIN/build/indexhtml-6a469b1f.js"
"VAADIN/build/indexhtml-add66a7c.js"
],
"webComponents": [],
"cvdlModules": {
Expand Down Expand Up @@ -329,6 +331,6 @@
},
"packageJsonHash": "c53327dfce5f86a113960cf3231a5725b0a784dcc0fde787af5857ca1bb7a0db",
"indexHtmlGenerated": [
" <script type=\"module\" crossorigin src=\"./VAADIN/build/indexhtml-6a469b1f.js\"></script>"
" <script type=\"module\" crossorigin src=\"./VAADIN/build/indexhtml-add66a7c.js\"></script>"
]
}
Loading

0 comments on commit 0d6b1bd

Please sign in to comment.