thank very much, Chad and Wouter,
the local maven repo ? of course that's possible, but be careful it does not get overwritten when maven downloads deps. ... what kinda functionality are you talking about ? is it anything that could be interesting for the other users too ?
.. I dont know if is interesting for other people, if someone wants them I can of course share them :-)
I am doing a database in which I have to record all the diferent states of the objects through the time. This means that when a update is done on a record I do not modify, but insert a new one with a diferent timestamp. Each record has an efect, start and end date, also if it is active or not.
When I work with the objects I have to take into account all this dates all the time and I also have to search for this dates to do all the bussiness logic...
All this objects are modeled the same way:
--------------------
| <<Entity>> |
| aObject |
--------------------
| id | --------------------
| | \|/ --------------------
| <<Entity>> |
| aHisValues |
------------------
| item1 |
| item2 |
| item3
| start date |
| end date |
| efect date |
| active |
-----------------
my problem that when I do this design, I have to codify finder metods on the aValues class like findLastValue(), FindFirstValue(), FindValueBetweenDates(Date1,Date2 ), findActiveValue() Etc...
Also I want to be able to do Collection aObject.getFindFirstValue(), or Collection aObject.findActiveValues();
to do this want I want to create two stereotypes that are process within the same Hibernate cartridge. One for the class and one for the values, in the one for the class I will create methods that reference to the Values invoking these methods.
On the Values Class I want two create the finders that also receive the Object Key in order to find the records, and I also want to create myself the hibernate SQL instead of codifing all the finders with the OCL (just because they are a lot of them, and they are written the same but with different objects), so I think this could be done with AndroMda....
...also I am not sure if I can create hibernate mappings for this instead of sets...
any ideas??
Carlos
smime.p7s
Description: S/MIME Cryptographic Signature