366852097f
Added database persistence to all add and delete methods
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-05-03 11:38:21 +02:00
88c4b0b772
Added Contract Mapping File
...
Added Contract Mapping File
2017-05-03 00:53:42 +02:00
b9d84e797b
Improved coding
...
- changed while to foreach loop where possible
- made methods private where possible
- removed unnecessary boxing
Signed-off-by: Jim Martens <github@2martens.de >
2017-05-01 17:25:59 +02:00
2deebe0bff
Uses secure password prompt if possible
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-05-01 16:32:49 +02:00
8a513bf892
Added schema to mapping files
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-05-01 15:52:53 +02:00
6b796d80c1
Simplified if statements and restricted var access where applicable
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-05-01 15:25:08 +02:00
ce68e751fc
At most the schema can be validated
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-28 16:49:58 +02:00
e712f46e3b
Wen don't want to recreate the schema every time
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-28 16:43:10 +02:00
a731bd9967
Changed id behaviour to increment
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-28 16:40:17 +02:00
70af878fa2
Added libraries to repository
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-28 16:17:39 +02:00
0e3e6e5d1f
Fixed parameter docstrings
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-28 15:52:35 +02:00
a2411097a5
Fixed usage of untyped list
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-28 15:51:35 +02:00
990a7811eb
Further changes to fit our DB schema
...
Further changes to fit our DB schema
Added session.close() to add delete and edit EstateAgent
2017-04-27 17:40:55 +02:00
9b2fa48271
Updated Mapping XML Files + Update EstateAgents
...
Updated Mapping XML Files + Update EstateAgents
2017-04-27 16:57:09 +02:00
d76deb51d2
Changed Makler and Person mapping to our English DB scheme
...
Changed Makler and Person mapping to our English DB scheme and new
Estates are now saved persistent
2017-04-27 16:24:27 +02:00
59fb5af1c4
Added Apartment to Immobile.hnb.xml mapping XML-File
...
Added Apartment to Immobile.hnb.xml mapping XML-File
2017-04-27 16:12:07 +02:00
3bc63e5442
Added Exercise 3 Example Project
...
Added Exercise 3 Example Project
2017-04-27 12:58:49 +02:00
0648382c86
Fixed persisting of contracts
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-26 15:19:59 +02:00
f19acc875f
Made delete estate method atomic
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-26 15:19:48 +02:00
e53663189b
Added editorconfig file
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-26 10:18:31 +02:00
cded76920c
Reintroduced support for updating contracts
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-25 17:35:56 +02:00
010fc9e21d
Removed invalid call
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-25 16:55:56 +02:00
3434fcae70
Added fallback for IDE case
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-25 16:53:37 +02:00
0a2846d7f2
Fixed persisting of estates
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-25 16:35:18 +02:00
1bb3199b3b
Reduced visibility to the required level
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-25 16:29:31 +02:00
b180ee52e6
Removed obsolete code
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-25 16:13:33 +02:00
9366ab384e
Reformatted the codebase
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-25 16:09:55 +02:00
6e7c1ed8bd
Reintroduced newContract parts from prev commit
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 17:56:39 +02:00
aac2115421
Merge branch 'master' of github.com:frmwrk123/dis
2017-04-24 17:42:34 +02:00
03803d8453
Prevented dead-end
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 17:25:09 +02:00
24c884756f
Hides already sold or rented apartments
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 17:17:53 +02:00
d54de4856c
Added ability to get sold houses and rented apartments
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 17:15:34 +02:00
e7382026e9
Completed contract functionality
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 16:54:33 +02:00
a1487f4d4f
Added ability to persist contracts
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 16:43:10 +02:00
81fab4a99a
Added ability to list persons, houses and apartments
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 16:17:37 +02:00
b695bc3657
Added types PERSON, HOUSE and APARTMENT
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 15:47:05 +02:00
60283aa7a3
Made setting the start date easier
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 15:40:05 +02:00
6abe846e8a
Added ability to persist persons
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 15:25:51 +02:00
1e1d9dc179
Changed duration type to Duration
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 15:17:38 +02:00
f3a365aa3e
Fixed type of startDate and duration in TenancyContract
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 14:59:14 +02:00
781a74ade2
Added id to Person class
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 14:44:20 +02:00
8453062df9
Added ability to retrieve a person
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 14:44:07 +02:00
bd18b9f0c8
Added showContract method
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 14:28:29 +02:00
e136cfec15
Fixed some formatting issues
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 14:24:46 +02:00
e0fb69437e
Changed startDate to int to reflect database state
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 14:19:23 +02:00
e5350da142
Added ability to retrieve list of contracts
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 13:46:00 +02:00
fb777a5bfc
Added space
...
Signed-off-by: Jim Martens <github@2martens.de >
2017-04-24 13:44:03 +02:00
fe37fc0dce
Bugfixes and small Interace changes
...
Improved Interface
removed Bugs from ORM.persist(Contract) and ORM.isApartment()
2017-04-22 13:34:56 +02:00
85010e6025
Changed Contract.date from String to Date
...
Changed Contract.date from String to Date
2017-04-22 13:16:57 +02:00
82c8df3e5c
Implementation of persist(Contract)
...
Added the implementaion of persist(Contract)
Changed 2 types of variables of TenancyContract to Timestamp
Updated Interface for Timestamp input
2017-04-22 13:13:04 +02:00