Robert von Burg
c7ce6ead76
Initial Commit
2013-10-23 19:59:32 +02:00
Robert von Burg
2f8900374f
Initial Commit
2013-10-23 19:59:07 +02:00
Robert von Burg
08a7f29e1b
Added ignores of eclipse files
2013-10-23 19:58:24 +02:00
Robert von Burg
703c8081a3
Initial Commit
2013-10-23 19:58:02 +02:00
Robert von Burg
d26a369042
Added ignores of eclipse files
2013-10-23 19:56:47 +02:00
Robert von Burg
2d46756427
Added ignores of eclipse files
2013-10-23 19:56:33 +02:00
Robert von Burg
2961211417
Initial Commit
2013-10-23 19:56:05 +02:00
Robert von Burg
f5431e0f0e
Initial Commit
2013-10-23 19:55:25 +02:00
Robert von Burg
cf6b5bbea9
Initial commit
2013-10-23 10:48:13 -07:00
Robert von Burg
61fef4d5c9
Initial commit
2013-10-23 10:47:32 -07:00
Robert von Burg
cae2b4d5c4
Initial commit
2013-10-23 10:46:34 -07:00
Robert von Burg
3af2005dd0
Initial commit
2013-10-23 10:44:50 -07:00
Robert von Burg
35e91e0464
Initial commit
2013-10-23 10:43:40 -07:00
Robert von Burg
f24a10992c
[New] added test to check acquiring locks
...
Added a test which checks that a TX fails if a lock can not be acquired,
but succeeds before the timeout to acquire the lock is exceeded.
Further fixed the brittle tests by using a different semaphore to
synchronize the threads.
2013-10-21 18:48:23 +02:00
Robert von Burg
87f82e1979
[New] implemented locking for all persistence operations
...
A LockingTest tests the locking, but still needs to be extended to test
further use cases, but basic locking works.
2013-10-20 01:14:59 +02:00
Robert von Burg
f176960ba9
[New] added ObjectFilter.getAll() further informations
...
added ObjectFilter.getAll(Class, String) and
ObjectFilter.getAll(Class<V> clazz)
2013-10-20 00:17:20 +02:00
Robert von Burg
3c006b541a
[New] implemented a test to allow multiple operations
...
This test makes sure that updating after adding, or any other operation
in the same TX works properly. Found a problem where the
PersistenceContext didn't implement hashCode() and equals() which lead
to each operation being added even though a previous operation was
already registered
2013-10-19 21:28:11 +02:00
Robert von Burg
3c623bd20c
[Project] Set maven parent for this project to ch.eitchnet.parent
2013-10-19 21:28:02 +02:00
Robert von Burg
5be5cd3fa0
[Minor] fixed compiler warnings
2013-10-19 17:49:27 +02:00
Robert von Burg
30ddf3cfbf
[New] implemented a basic test for multiple realms (mandates)
2013-10-19 17:45:33 +02:00
Robert von Burg
977d604a95
[New] created tests for object with no subType
...
This is implemented with the Book model in the test folder
2013-10-19 17:44:59 +02:00
Robert von Burg
bce78769c0
[New] added testing of the *byId() methods
...
Here i found a conceptual problem where the *byId() methods didn't
properly resolve ObjectRefs and add them to the TX because, we added the
ObjectRefs to the filter, which made the TX resolve PersistenContexts by
the wrong type.
Now we always add the same type of object to the ObjectFilter; the
PersistentContext. This means that when we call ObjectDao.add(T), etc.
we must already create such the context. This helps resolve another
issue at the back of my mind: We don't want to partially commit a TX if
such a basic information as the object's CTX is not available.
2013-10-19 17:43:36 +02:00
Robert von Burg
a0d5904db9
[Minor] added default IoMode, so that it must no be set on each TX
2013-10-16 18:53:32 +02:00
Robert von Burg
0d106c0714
[Minor] refactored tests to have a base class for cleaning up and
...
preparing the db store
2013-10-16 07:59:03 +02:00
Robert von Burg
4c7f0fc460
[Major] implemented new ObjectRef referencing of objects with locking
...
Locking is not yet implemented, but is now prepared. This is once again
a major rewrite but this has lead to easier use and less if/else
constructs but far more object oriented delegation and double
dispatching where possible
2013-10-15 22:26:58 +02:00
Robert von Burg
200f2081ec
[New] added a new ClassHelper utility class
2013-10-08 22:02:42 +02:00
Robert von Burg
601692d3d9
[New] added further constants to StringHelper
2013-10-08 19:57:40 +02:00
Robert von Burg
d3e77afef2
[Minor] cleaned up compiler warnings
2013-10-08 19:00:27 +02:00
Robert von Burg
41a7198cdd
[New] added newline constant to StringHelper
2013-10-08 18:57:27 +02:00
Robert von Burg
3357787f32
[Major] rewrite is working with ObjectDao with including operations
2013-10-08 18:49:46 +02:00
Robert von Burg
ca9c21e0e2
[New] rewrite is now working as test.
2013-10-06 18:42:55 +02:00
Robert von Burg
f81dec8939
[New] working on rewrite
2013-10-06 12:32:57 +02:00
Robert von Burg
bacc6d72fd
[Project] fixed /src/main to /src/test reference
2013-09-27 20:40:02 +02:00
Robert von Burg
403f59b82c
[Project] fixed reference of src/main/ to /src/test
2013-09-27 20:30:55 +02:00
Robert von Burg
15a118e0e5
[Major] major rewrite, re-thinking the API
...
it is still not really nice how one has to use the persistence layer,
thus in the test folder i am currently implementing a completely new API
where simple use is central - but not forgetting SAX and DOM being used
transparently.
2013-09-27 20:23:48 +02:00
Robert von Burg
6f0c623d20
[Project] added dependency of ch.eitchnet.utils:0.2.0-SNAPSHOT
2013-09-21 10:07:31 +02:00
Robert von Burg
b7a4762a05
[Minor] Made Base encoding/decoding performance tests configurable
...
To enable them, set the system property
ch.eitchnet.utils.test.runPerfTests=true
2013-09-21 10:03:27 +02:00
Robert von Burg
a5ffe0a6cc
[Project] moved some project details to parent ch.eitchnet.parent
...
This simplifies project setup and maintenance
2013-09-21 09:11:40 +02:00
Robert von Burg
a68c44c9fd
[Project] moved some project details to parent ch.eitchnet.parent
...
This simplifies project setup and maintenance
2013-09-21 09:11:34 +02:00
Robert von Burg
3d8fa992d4
[Project] moved some project details to parent ch.eitchnet.parent
...
This simplifies project setup and maintenance
2013-09-21 09:03:05 +02:00
Robert von Burg
9f9f7b0216
[Project] changed Java version frm 1.6 to 1.7 in pom.xml
2013-09-16 07:47:08 +02:00
Robert von Burg
daf34735ae
[Project] changed Java version frm 1.6 to 1.7 in pom.xml
2013-09-16 07:46:57 +02:00
Robert von Burg
31c6acec6c
[Minor] fixed failing test due to different formatting of xml writing
2013-09-15 21:57:42 +02:00
Robert von Burg
e6f8343af7
[Minor] fixed compiler warnings
2013-09-15 21:45:40 +02:00
Robert von Burg
c9cbb53475
[Minor] changed map declaration to be its interface
2013-09-15 21:44:50 +02:00
Robert von Burg
f9c613ca46
[Minor] fixed compiler warnings
2013-09-15 21:43:52 +02:00
Robert von Burg
c7ba5054de
[Minor] fixed compiler warnings
2013-09-15 21:42:04 +02:00
Robert von Burg
fed2bffa36
[Major] major rewrite, now implemented SAX and DOM methods.
...
Now DOM implementation is working as well with a test scenario
2013-09-15 21:41:00 +02:00
Robert von Burg
23cbca6f89
[Minor] fixed compile error due to wrong import to test classes
2013-09-15 20:55:16 +02:00
Robert von Burg
289cee3f51
[Major] major rewrite, now implemented SAX and DOM methods.
...
SAX works, DOM does not yet work. Simpler implementation now by not
having to modify domain objects so they can be persisted.
2013-09-14 08:45:12 +02:00