Fix in ModelViewEntity is a good idea, but that Product code makes me uneasy. It seems to be working around a problem that can be resolved properly with a view-entity with all the latest features, including COALESCE. I'll take a closer look.

- Leon


Jacques Le Roux wrote:
Compiking is ok now, thanks Jacopo

Leon or David, if you have a chance, please take a look at it.

TIA

Jacques

From: "Jacopo Cappellato" <[EMAIL PROTECTED]>
I've committed (rev. 451963) a (temp?) fix for this... please verify if
this is a right way to fix it.
Now it should compile ok.

Jacopo

Jacques Le Roux wrote:
Hi,

ant clean
ant :

    [javac] Compiling 42 source files to 
D:\WorkspaceNew\ofbiz\applications\product\build\classes
    [javac] 
D:\WorkspaceNew\ofbiz\applications\product\src\org\ofbiz\product\product\ProductSearch.java:270:
 cannot resolve
symbol
    [javac] symbol  : constructor ComplexAliasField 
(java.lang.String,java.lang.String)
    [javac] location: class 
org.ofbiz.entity.model.ModelViewEntity.ComplexAliasField
    [javac]                     relevancyComplexAlias.addComplexAliasMember(new 
ComplexAliasField(entityAlias,
"relevancyWeight"));
    [javac]                                                                 ^
    [javac] 
D:\WorkspaceNew\ofbiz\applications\product\src\org\ofbiz\product\product\ProductSearch.java:302:
 cannot resolve
symbol
    [javac] symbol  : constructor ComplexAliasField 
(java.lang.String,java.lang.String,java.lang.String)
    [javac] location: class 
org.ofbiz.entity.model.ModelViewEntity.ComplexAliasField
    [javac]                         
relevancyComplexAlias.addComplexAliasMember(new ComplexAliasField(entityAlias,
"relevancyWeight", "sum"));
    [javac]                                                                     
^
    [javac] 2 errors
   [subant] Failure for target 'null' of: 
D:\WorkspaceNew\ofbiz\applications\build.xml
   [subant] The following error occurred while executing this line:
   [subant] D:\WorkspaceNew\ofbiz\applications\build.xml:67: The following 
error occurred while executing this line:
   [subant] D:\WorkspaceNew\ofbiz\applications\product\build.xml:97: Compile 
failed; see the compiler error output for details.
   [subant] No sub-builds to iterate on
     [echo] [build] ========== Done Building (Compile) ==========

Have no time to look at it yet (I put lines in comment and it builds)

Thanks

Jacques



Reply via email to