bruceyue / force-metadata-jdbc-driver

Automatically exported from code.google.com/p/force-metadata-jdbc-driver
0 stars 0 forks source link

Saleforce Object Field Required state always empty - why? #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using SchemaSpy (current / beta - same behaviour) via ant
2. Connecting to Salesforce MetaData API - with administrator privileges
3.

What is the expected output? What do you see instead?
In schemaspy column "Nulls" should have a value (yes / no)

What version of the product are you using? On what operating system?
Windows 7 - Microsoft Windows [Version 6.1.7601]

Please provide any additional information below.
Not using any specific features - here is a build.xml that runs ant over the 
entire java .jar set

<project default="document">

<property name="sf.username" value="[[[UserName]]]"/>
<property name="sf.password" value="[[[Pasword]]][[[Token]]]"/>

<target name="document">
<echo message="Generating SchemaSpy documentation (requires Graphviz to be 
installed to produce diagrams)"/>
<java classname="net.sourceforge.schemaspy.Main" fork="true" failonerror="true">
<arg line="-connprops 
url\=https://test.salesforce.com/services/Soap/u/21.0;standard\=false;custom\=fa
lse;excludes\=User;includes\=Account,Task"/>
<arg line="-t schemaspy/force"/>
<arg line="-db MyLocalSFOrg"/>
<arg line="-un ${sf.username}"/>
<arg line="-pw ${sf.password}"/>
<arg line="-o mydoc"/>
<arg line="-font Arial"/>
<arg line="-fontsize 8"/>
<arg line="-hq"/>
<arg line="-norows"/>
<arg line='-desc "Extracted from MyLocalSFOrg on Force.com - Date by Folder"'/>
<arg line="-u fake"/>
<arg line="-p fake"/>
<arg line="-host fake"/>
<classpath>
<fileset dir="SchemaSpy" includes="*.jar"/>
</classpath>
</java>
</target>

</project>

Original issue reported on code.google.com by derrin3...@gmail.com on 5 Aug 2014 at 11:22

GoogleCodeExporter commented 9 years ago
I presume this is line 143 of 
https://code.google.com/p/force-metadata-jdbc-driver/source/browse/trunk/force-m
etadata-jdbc-driver/src/com/claimvantage/force/jdbc/WscService.java. If it is 
important to you, you can grab the code and change it and run your own copy. If 
that goes well, post the code change here and I'll try it out and issue a new 
version of the JAR.

Original comment by keith.cl...@gmail.com on 5 Aug 2014 at 4:55

GoogleCodeExporter commented 9 years ago
this seems simple fix please accept this patch. 

Original comment by theanura...@gmail.com on 8 Aug 2014 at 4:34

GoogleCodeExporter commented 9 years ago

Original comment by theanura...@gmail.com on 8 Aug 2014 at 4:34

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You've tested this and it gives you the results you expect right? Can you post 
a one line explanation of the change (not of the code change but the impact on 
the output) and I'll include that as the change information for a version 2.3? 
Thanks.

Original comment by keith.cl...@gmail.com on 8 Aug 2014 at 6:04

GoogleCodeExporter commented 9 years ago
The impact of the change put forward by theanura... can be described as follows:

setNillable returns TRUE for mandatory object field, FALSE for a non-mandatory 
object field

Please advise if you are looking for something more Keith?

Thanks

Original comment by derrin3...@gmail.com on 14 Aug 2014 at 1:47

GoogleCodeExporter commented 9 years ago
That's fine. The other question I'm asking is confirmation that this change has 
been tested and gives the expected results.

Original comment by keith.cl...@gmail.com on 14 Aug 2014 at 2:04

GoogleCodeExporter commented 9 years ago
I am not a software developer so unfortunately I cannot answer - I can just
about build an ant script to call a java program - compiling a java stack
is beyond my talents - if someone could provide me with a compiled jar I
will be more than happy to test it (using schemaspy) - testing its output
any other way would be tricky however.

Original comment by derrin3...@gmail.com on 14 Aug 2014 at 2:57

GoogleCodeExporter commented 9 years ago
Anybody help compiling this please? 

Original comment by derrin3...@gmail.com on 20 Aug 2014 at 7:54