Home Help Center

Ice and Java JDO

does anyone know if there are huge roadblocks to persisting Ice classes with JDO? generating the ice classes from slice and then bytecode enhancing the relevant files?

thanks,

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    I can't think of any reasons why this wouldn't work. You can also try to convince yourself by looking at the generated code for a Slice class. The generated Java class extends Ice.ObjectImpl which only contains static attributes. Attributes defined in the Slice class will be mapped according to the Slice to Java mapping to public attributes in the Java class.

    The best is simply to try, let us know if you encounter any troubles!

    Benoit.
  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi Seth,

    I don't see any issue. The only data members of a Slice-generated class are the mapped slice-declared data members. If you want to use these objects as servants, it would probably make sense to write your own servant locator to locate these objects in your database.

    Cheers,
    Bernard
  • tanx

    thanks, guys. i'm mid implementation to see how well it works.

    let you know if anything pops up problematic.
Sign In or Register to comment.