Ok, I can reproduce the get new/old value returns null problem. It is due to
missing equals/hashCode in the Properties classes. I have fixed that in
trunk. If you need workaround right away you can download 
http://fornax.svn.sourceforge.net/svnroot/fornax/trunk/cartridges/sculptor/fornax-cartridges-sculptor-framework/src/main/java/org/fornax/cartridges/sculptor/framework/domain/PropertiesCollection.java
PropertiesCollection  and rename it to FixedPropertiesCollection and define
the new class name in sculptor-generator.properties:
framework.domain.PropertiesCollection=org.fornax.cartridges.sculptor.examples.library.audit.domain.FixedPropertiesCollection
 

I also found 2 more issues, that might not be urgent for you, but I have
fixed them in trunk.
FullAuditLog interface should not extend Auditable. They are two separate
features. Problem to combine FullAuditable with JodaAuditable. 
You can workaround this in the same way as above, download new 
http://fornax.svn.sourceforge.net/svnroot/fornax/trunk/cartridges/sculptor/fornax-cartridges-sculptor-framework/src/main/java/org/fornax/cartridges/sculptor/framework/domain/FullAuditLog.java
FullAuditLog .

And also, implements FullAuditLog is not generated in the domain objects.
You can workaround this by adding the following to
src/main/resources/extensions/SpecialCases.ext:
import sculptormetamodel;

extension extensions::helper;
extension extensions::properties;
        
around extensions::helper::getImplementsInterfaceNames(Entity entity) :
        let list = {} :
    if (entity.auditable) then
        list.add(auditableInterface()) ->
    if (entity.isIdentifiable()) then
        list.add(identifiableInterface()) ->
    if (isFullyAuditable()) then
        list.add(fw("domain.FullAuditLog") + "<" + entity.getDomainPackage() +
"." + entity.name + ">") ->
    list.toCommaSeparatedString();


I hope that helps you one step further. Sorry for the inconvenience. This
FullAudit feature has obviously not been used/tested much.

/Patrik


Patrik Nordwall wrote:
> 
> Good, I will try the full audit.
> Did you load (find) the Client instance and then changed the attribute
> with setNom ?
> 
> /Patrik 
> 
> 
> Narich wrote:
>> 
>> thank you Patrik , the probleme was resolved . il's because we were
>> excluded the generation of id attribute (database contsraints)
>> 
>> Now , it's works, but when i want to get new or old value from
>> auditHandler , it's returns null! 
>> 
>> i do like this  : 
>> 
>> entity.receiveAuditHandler().getNewValue(ClientProperties.nom()); 
>> 
>> the class client implements FullauditLog interface . 
>> 
>> this  is correct ? 
>> 
>> can you give me an example ? 
>> 
>> thanks
>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Audit-in-a-separable-table-tp29356396s17564p29495585.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to