Current Position:Home > Placement of .JDO files

Placement of .JDO files

Update:11-30Source: network consolidation
Advertisement
Hi,
(my question
Can .JDO files be placed in src folder or some other folder or does it
have to be in the folder containing the class files. )
We have a web application under Tomcat with the structure as
web-inf
-classes
... package structure
- src
... package structure.
Currently we have our .JDO files under the classes folder in the right
package structure. we have individual .JDO file for each object rather
than a package.jdo or a system.jdo (we specify each db column and property
in each file per table)
Can these be placed in src folder or some other folder or does it have to
be in that folder.
when i tried to move the .jdo to the src folder and i tried to enhance an
object, the enhancer said
[java] Enhancing "class Adib.Motiwala.Person"...
[java] Type "Adib.Motiwala.Person" has no metadata; enhancing as
persistence-aware
Please let us know abt this.
Thanks
adib motiwala

The Best Answer

Advertisement
The metadata files must be loadable as a resource from the Classes they pertain to. This is part of the JDO specification. For more information on Java resources, consult the Javadoc for java.lang.Class.getResource() and java.lang.ClassLoader.getResource().
It boils down to this: the metadata files have to be in certain special locations, and those locations have to be in the CLASSPATH. If you put your src/ directory in your CLASSPATH things should work just fine.
  • SAX parser error unknownHostException for JDO files Update:10-11

    Hi everyone, The java.sun.com site is down (or perhaps only unreachable from Maine Road Runner) today. If your JDO file uses a DOCTYPE statement that references the site, and you see this error, that's the reason. David EzzioJust FYI, Kodo validates

  • How to configure .jdo file name Update:11-30

    It is possiple to put all mapping information in one file and provide its name to PMF (as MappingFactory property). Is the same possible for .jdo information (i.e. put all .jdo information in one file and provide file name in configuration) ? -ZachZa

  • Class Enhancement without a .jdo file Update:11-30

    Is it possible to do a byte code enhancement using the KODO APIs passing in a data structure containing the .jdo metadata file information without having to explicitly create a .jdo file? I'm looking at using the enhance() method of JDOEnhancer class

  • Placement of .JDO files Update:11-30

    Hi, (my question Can .JDO files be placed in src folder or some other folder or does it have to be in the folder containing the class files. ) We have a web application under Tomcat with the structure as web-inf -classes ... package structure - src .

  • JDO: Query returns too many results. Update:10-11

    Hello, I want to get some DO-Entities from an empty table. When I execute the query I retrieve more than 2 000 000 000 results what is definitly too much for an empty table. The DO has an one-to-many relationship to another class and a many-to-one re

  • FatalInternalException The metadata for type "XYZ" did not come from a file,..... Update:10-11

    Hy ! Did KODO have Problems if there is a mix of jdo metadata files in build.dir and in external jar's while registering a Schema with the MappingToolTask ? We extracting all *.jdo files from additional jars to a metadata dir and also copying all *.j

  • Inheritance in Kodo JDO 3.1.0 Update:11-30

    Hi I am implementing inheritance in 2 classes and buys battling with it. I resorted to using the examples from the Kodo documentation and it is still not working. I am following the example in the documentation by the letter and no success. The subcl

  • Package.jdo in JBuilder Update:11-30

    Hi, The user manual states that "creating and editing package.jdo metadata files for multiple classes is currently not supported in the JBuilder interface." Whenever I make/rebuild/run my project from JBuilder, it executes the enhancer against e

  • Javax.jdo.JDOFatalUserException: No metadata has been registered Update:11-30

    Hi all, I get the following error when running the following call: String fieldNames[] = JDOImplHelper.getInstance().getFieldNames(emp.getClass()); for (int i = 0; i <fieldNames.length; i++) { JDOHelper.makeDirty(emp, fieldNames); javax.jdo.JDOFatalU

  • System.jdo Update:11-30

    When I load my application within the servlet environment, koko is unable to find my system.jdo file. It is located here:      catalina\webapps\at\WEB-INF\classes\system.jdo The funny thing is that if I create a package.jdo and put it in the right pl

Recommended Content

Database error: [Table 'ac_posts' is marked as crashed and should be repaired]

SELECT * FROM ac_posts WHERE `ID` IN (1751976,3095543,4501655,2292330,1268369,30429,4018578,3722888,1988973,1750544,3097616,1542880,654487,1291149,1506177,785017,4011359,2286801,900279,4345717,1577918,652773,1990648,2491417,3802923,3910462,4460353,3028813,2730578,4371274,4122082) LIMIT 15;