db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Decker (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (TORQUE-317) BaseBean does generate fields for referencing objects
Date Wed, 20 Aug 2014 18:40:26 GMT

    [ https://issues.apache.org/jira/browse/TORQUE-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14104010#comment-14104010
] 

Rob Decker edited comment on TORQUE-317 at 8/20/14 6:38 PM:
------------------------------------------------------------

Here are the properties I am using from ant's -debug output:
{noformat}
Setting project property: torque.om.addTimeStamp -> true
Setting project property: torque.om.trackSaving -> true
Setting project property: torque.target.source.dir -> src/java
Setting project property: torque.om.objectIsCaching -> true
Setting project property: torque.target.resources -> src/main/resources
Setting project property: torque.database -> mysql
Setting project property: torque.om.useManagers -> false
Setting project property: torque.om.bean.beanExtendsClass -> 
Setting project property: torque.sql.generate.drops -> true
Setting project property: torque.om.saveMethodsInDbObjects -> true
Setting project property: torque.om.package.dbObjectPackageSuffix -> .dbobject
Setting project property: torque.om.basePeerBaseClass -> 
Setting project property: torque.om.complexObjectModel -> true  
Setting project property: torque.om.package.recordMapperPackageSuffix -> .map
Setting project property: torque.om.silentDbFetch -> true
Setting project property: torque.om.package -> ui.torque.om
Setting project property: torque.om.trackLoading -> true
Setting project property: torque.database.schema -> ui
Setting project property: torque.schema.source.dir -> src/main/generated-schema
Setting project property: javac.nowarn -> false
Setting project property: javac.deprecation -> false
Setting project property: torque.om.package.baseBeanPackageSuffix -> .bean.base
Setting project property: torque.target.generated.sql.dir -> src/main/generated-sql
Setting project property: torque.target.generated.sources.dir -> src/main/generated-java
Setting project property: torque.om.package.managerPackageSuffix -> .manager
Setting project property: torque.om.trackModified -> true
Setting project property: torque.om.addSaveMethods -> true
Setting project property: torque.om.package.baseRecordMapperPackageSuffix -> .map.base
Setting project property: torque.om.package.baseManagerPackageSuffix -> .manager.base
Setting project property: torque.driver -> com.mysql.jdbc.Driver
Setting project property: torque.om.package.peerPackageSuffix -> .peer
Setting project property: torque.target.generated.schema.dir -> src/main/generated-schema
Setting project property: torque.om.package.beanPackageSuffix -> .bean
Setting project property: torque.om.addGetByNameMethods -> true
Setting project property: torque.target.classes -> src/main/classes
Setting project property: torque.om.package.mapInitPackageSuffix -> .map.init
Setting project property: torque.om.package.baseDbObjectPackageSuffix -> .dbobject.base
Setting project property: torque.om.saveException -> TorqueException
Setting project property: torque.om.trackDeleted -> true
Setting project property: torque.jdbc2schema.driver -> com.mysql.jdbc.Driver
Setting project property: torque.om.generateBeans -> true
Setting project property: torque.om.package.basePeerPackageSuffix -> .peer.base
Setting project property: torque.om.useIsForBooleanGetters -> true
Setting project property: torque.om.dbObjectDefaultBaseClass ->
Setting project property: torque.om.trackNew -> true
{noformat}



was (Author: rdecker):
Here are the properties I am using:
{noformat}
Setting project property: torque.om.addTimeStamp -> true
Setting project property: torque.om.trackSaving -> true
Setting project property: torque.target.source.dir -> src/java
Setting project property: torque.om.objectIsCaching -> true
Setting project property: torque.target.resources -> src/main/resources
Setting project property: torque.database -> mysql
Setting project property: torque.om.useManagers -> false
Setting project property: torque.om.bean.beanExtendsClass -> 
Setting project property: torque.sql.generate.drops -> true
Setting project property: torque.om.saveMethodsInDbObjects -> true
Setting project property: torque.om.package.dbObjectPackageSuffix -> .dbobject
Setting project property: torque.om.basePeerBaseClass -> 
Setting project property: torque.om.complexObjectModel -> true  
Setting project property: torque.om.package.recordMapperPackageSuffix -> .map
Setting project property: torque.om.silentDbFetch -> true
Setting project property: torque.om.package -> ui.torque.om
Setting project property: torque.om.trackLoading -> true
Setting project property: torque.database.schema -> ui
Setting project property: torque.schema.source.dir -> src/main/generated-schema
Setting project property: javac.nowarn -> false
Setting project property: javac.deprecation -> false
Setting project property: torque.om.package.baseBeanPackageSuffix -> .bean.base
Setting project property: torque.target.generated.sql.dir -> src/main/generated-sql
Setting project property: torque.target.generated.sources.dir -> src/main/generated-java
Setting project property: torque.om.package.managerPackageSuffix -> .manager
Setting project property: torque.om.trackModified -> true
Setting project property: torque.om.addSaveMethods -> true
Setting project property: torque.om.package.baseRecordMapperPackageSuffix -> .map.base
Setting project property: torque.om.package.baseManagerPackageSuffix -> .manager.base
Setting project property: torque.driver -> com.mysql.jdbc.Driver
Setting project property: torque.om.package.peerPackageSuffix -> .peer
Setting project property: torque.target.generated.schema.dir -> src/main/generated-schema
Setting project property: torque.om.package.beanPackageSuffix -> .bean
Setting project property: torque.om.addGetByNameMethods -> true
Setting project property: torque.target.classes -> src/main/classes
Setting project property: torque.om.package.mapInitPackageSuffix -> .map.init
Setting project property: torque.om.package.baseDbObjectPackageSuffix -> .dbobject.base
Setting project property: torque.om.saveException -> TorqueException
Setting project property: torque.om.trackDeleted -> true
Setting project property: torque.jdbc2schema.driver -> com.mysql.jdbc.Driver
Setting project property: torque.om.generateBeans -> true
Setting project property: torque.om.package.basePeerPackageSuffix -> .peer.base
Setting project property: torque.om.useIsForBooleanGetters -> true
Setting project property: torque.om.dbObjectDefaultBaseClass ->
Setting project property: torque.om.trackNew -> true
{noformat}


> BaseBean does generate fields for referencing objects
> -----------------------------------------------------
>
>                 Key: TORQUE-317
>                 URL: https://issues.apache.org/jira/browse/TORQUE-317
>             Project: Torque
>          Issue Type: Bug
>          Components: Templates
>    Affects Versions: 4.0
>         Environment: Centos 6.4, Java 8
>            Reporter: Rob Decker
>            Assignee: Thomas Fox
>            Priority: Critical
>
> In the baseBean.vm template the field definitions for referenced objects mergepoints
are present but the generated beans do not contain the fields. The methods do properly reference
the fields but the code does not compile because the field declarations are missing. 
> ## field definitions for referenced objects
> #if ($torqueGen.booleanOption("torque.om.complexObjectModel"))
> $torqueGen.mergepoint("fieldDefinitionsReferencedObjects")
> ##
> ## field definitions for referencing objects
> $torqueGen.mergepoint("fieldDefinitionsReferencingObjects")
> #end
> I am not familiar enough with templates to figure why it isn't working.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message