-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from codellm-devkit/issue-86-entrypoints
Issue 86 entrypoints
- Loading branch information
Showing
393 changed files
with
45,658 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=2.0.2 | ||
version=2.1.0-dev |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.ibm.cldk.entities; | ||
|
||
import com.ibm.cldk.utils.annotations.NotImplemented; | ||
import com.ibm.cldk.utils.annotations.Todo; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import java.util.List; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@NotImplemented | ||
public class CRUDOperation { | ||
public enum OperationType { | ||
CREATE, | ||
READ, | ||
UPDATE, | ||
DELETE, | ||
UNKNOWN | ||
} | ||
|
||
@Todo(comment = "Add more frameworks, and consider moving this outside because this may be generic.") | ||
@NotImplemented | ||
public enum JavaFramework { | ||
JPA, | ||
SPRING | ||
} | ||
|
||
private OperationType operationType; | ||
private String targetTable; | ||
private int lineNumber; | ||
private int startPosition; | ||
private int endPosition; | ||
|
||
@NotImplemented | ||
private String operationString; | ||
@NotImplemented | ||
private List<String> involvedFields; | ||
@NotImplemented | ||
private String condition; | ||
@NotImplemented | ||
private List<String> joinedTables; | ||
@NotImplemented | ||
private JavaFramework framework; | ||
@NotImplemented | ||
private boolean isBatchOperation = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/com/ibm/cldk/utils/annotations/NotImplemented.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.ibm.cldk.utils.annotations; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Documented | ||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface NotImplemented { | ||
String value() default ""; | ||
String since() default ""; | ||
String issue() default ""; | ||
String comment() default ""; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.ibm.cldk.utils.annotations; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Documented | ||
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface Todo { | ||
String value() default ""; | ||
String issue() default ""; | ||
String comment() default ""; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/test/resources/test-applications/daytrader8/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/.apt_generated/ | ||
/target/ | ||
/build/ | ||
/bin/ | ||
.classpath | ||
.project | ||
/.settings/ | ||
/wlp/ | ||
/openliberty/ | ||
.factorypath | ||
.DS_Store |
14 changes: 14 additions & 0 deletions
14
src/test/resources/test-applications/daytrader8/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM open-liberty:full | ||
|
||
COPY --chown=1001:0 src/main/liberty/config/server.xml /config/server.xml | ||
COPY --chown=1001:0 src/main/liberty/config/bootstrap.properties /config/bootstrap.properties | ||
COPY --chown=1001:0 target/io.openliberty.sample.daytrader8.war /config/apps/ | ||
|
||
#Derby | ||
COPY --chown=1001:0 target/liberty/wlp/usr/shared/resources/DerbyLibs/derby-10.14.2.0.jar /opt/ol/wlp/usr/shared/resources/DerbyLibs/derby-10.14.2.0.jar | ||
COPY --chown=1001:0 target/liberty/wlp/usr/shared/resources/data /opt/ol/wlp/usr/shared/resources/data | ||
|
||
ENV MAX_USERS=1000 | ||
ENV MAX_QUOTES=500 | ||
|
||
#RUN configure.sh |
21 changes: 21 additions & 0 deletions
21
src/test/resources/test-applications/daytrader8/Dockerfile-db2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Create folder db2jars/ and copy db2jcc4.jar and db2jcc_license_cu.jar to it. | ||
# Set Env below | ||
|
||
FROM open-liberty:full | ||
|
||
COPY --chown=1001:0 src/main/liberty/config/server.xml_db2 /config/server.xml | ||
COPY --chown=1001:0 src/main/liberty/config/bootstrap.properties /config/bootstrap.properties | ||
COPY --chown=1001:0 target/io.openliberty.sample.daytrader8.war /config/apps/ | ||
|
||
# DB2 JARS | ||
COPY --chown=1001:0 /db2jars /opt/ol/wlp/usr/shared/resources/db2jars | ||
|
||
ENV contextRoot=daytrader | ||
ENV dbUser= | ||
ENV dbPass= | ||
ENV tradeDbHost= | ||
ENV tradeDbPort= | ||
ENV tradeDbName= | ||
|
||
|
||
#RUN configure.sh |
Oops, something went wrong.