-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Releases version 0.0.2, add the config out of src
- Loading branch information
Showing
17 changed files
with
51 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
/src/properties/config_db.properties | ||
/src/properties/config_querys.properties | ||
/src/properties/config_pool.properties | ||
/config/config_db.properties | ||
/config/config_pool.properties |
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,4 +1,4 @@ | ||
/helpers/ | ||
/servlet/ | ||
/bussinessObjects/ | ||
/properties/ | ||
/dbComponent/ | ||
/bussinessObjects/ | ||
/servlet/ |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 @@ | ||
PLEASE CREATE config_db.properties and config_pool.properties with this format!! | ||
|
||
EXAMPLES: | ||
|
||
//////////////////// config_pool.properties //////////////////////////////////////// | ||
|
||
maxconnections=50; | ||
hops=5; | ||
|
||
/////////////////////////////////////////////////////////////////////////////////// | ||
|
||
/////////////////// config_db.properties //////////////////////////////////////// | ||
|
||
db.driver=org.postgresql.Driver; | ||
db.url=jdbc:postgresql://localhost:5432/MyGoodDB; | ||
db.username=UserofMyGoodDB; | ||
db.password=PassofMyGoodDB; | ||
|
||
/////////////////////////////////////////////////////////////////////////////////// | ||
|
||
|
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,18 @@ | ||
insert.object= INSERT INTO object (name_object) VALUES (?); | ||
insert.method= INSERT INTO method (name_method, id_object_method) VALUES (?, ?); | ||
insert.users = INSERT INTO users (name_users, surname_users, email_users, password_users, creationtime_users) VALUES (?, ?, ?, ?, ?); | ||
select.where.name_object=SELECT *FROM object WHERE name_object=?; | ||
select.where.name_method=SELECT *FROM method WHERE name_method=?; | ||
select.where.id_profile=SELECT *FROM profile WHERE id_profile=?; | ||
select.profile=SELECT *FROM profile; | ||
select.permissions=SELECT *FROM permissions; | ||
select.where.id_profile_permissions=SELECT *FROM permissions WHERE id_profile_permissions=?; | ||
select.where.id_method=SELECT *FROM method WHERE id_method=?; | ||
select.where.id_object=SELECT *FROM object WHERE id_object=?; | ||
innerjoin.object.method=SELECT method.id_method, method.name_method, object.name_object FROM method INNER JOIN object ON method.id_object_method = object.id_object; | ||
select.users.where.email_users=SELECT *FROM users where email_users=?; | ||
select.users.where.id_users=SELECT *FROM users where id_users=?; | ||
insert.profile = INSERT INTO profile (username_profile) VALUES (?); | ||
insert.users_profile = INSERT INTO users_profile (id_profile, id_users) VALUES (?, ?); | ||
select.profile.where.username_profile = SELECT *FROM profile where username_profile=?; | ||
select.users_profile.where.id_profile= SELECT *FROM users_profile WHERE id_profile=?; |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package properties; | ||
|
||
|
||
public class Properties { | ||
public static String URI = "/home/mdjfs/the_workspace/backend_java/"; | ||
|
||
public static String NameProject = Properties.class.getProtectionDomain().getCodeSource().getLocation().getPath().split("/WEB-INF")[0].split("apps/")[1]; | ||
public static String URI = Properties.class.getProtectionDomain().getCodeSource().getLocation().getPath().split(".metadata")[0] + NameProject + "/"; | ||
public static String BussinesObjectsURI = URI + "src/bussinessObjects"; | ||
public static String QuerysURI = URI + "src/properties/config_querys.properties"; | ||
public static String DBConfigURI = URI + "src/properties/config_db.properties"; | ||
public static String POOLConfigURI = URI + "src/properties/config_pool.properties"; | ||
public static String QuerysURI = URI + "config/config_querys.properties"; | ||
public static String DBConfigURI = URI + "config/config_db.properties"; | ||
public static String POOLConfigURI = URI + "config/config_pool.properties"; | ||
|
||
} |
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