TopLink 10.1.2.0/9.0.4.5 now available

In coordination with the 10.1.2.0 release of the application server TopLink has shipped 9.0.4.5. This is available for download now. The download link is on the right hand side of the TopLink landing page on OTN:
http://www.oracle.com/technology/products/ias/toplink/index.html
This is a full installer. For those with support this is also available as a patch-set from metalink.oracle.com (Patch #3941343).
Cheers,
Doug

Dear Douglas,
Would you mind to point me to the release note of TopLink 9.0.4.5? I would like to see whether it is compatible with TopLink 9.0.3. Thanks.
Regards,
William

Similar Messages

  • OracleAS TopLink 10g (10.0.3) Developer Preview 2 - NOW AVAILABLE

    Earlier this week we upgraded the 10.0.3 Developer Preview. The full set of functionality is documented in the release notes available on the preview landing page(http://otn.oracle.com/products/ias/toplink/preview/index.html).
    The functionality added in this refresh of the preview includes:
    - OC4J CMP Support
    - CTS 1.4 compliance
    -Support for hot/re-deployment of TopLink enabled CMP applications
    - Bean Pessimistic Locking - Have any of your beans locked on the database as you access them in a TX
    - Read-only entity beans are now supported
    - Enhanced integration with OracleAS for DMS capturing of performance statistics
    - Object-XML mapping enhanced:
    - Document Preservation - keep your un-mapped XML from being lost in the translation
    - JAXB Compiler - Generate an object model from schema with TopLink MW project
    - EIS/JCA mapping enhanced. Access your non-relational data source through OracleAQ or MQ Series
    - Object-Relational Enhancements
    - Value return from write - Use triggers to assign and return your PK or other calculated values on INSERT or UPDATE
    - Isolated Session Cache - Use TopLink to map your VPD/OLS managed tables
    - Conversion support for oracle.sql.TIMESTAMP & TIMSTAMPTZ
    - Generic history support - With versioning columns you can perform queries for past points in time using the HistoricalSession
    - Stored Function Support - Invoke your favourite stored function in the Oracle DB
    - Configurable query timeout support
    - Enhanced and re-organized examples. See examples link from preview landing page
    Additionally we have also added several new how-to docs that can also be accessed from the preview link above.
    If you encounter any issues with the preview please post them to this forum.
    Cheers,
    Doug Clarke
    Principal Product Manager
    OracleAS TopLink

    Sorry about the link above. Try:
    http://otn.oracle.com/products/ias/toplink/preview/index.html
    Doug

  • OracleAS TopLink 10g (9.0.4) for Windows - NOW AVAILABLE

    http://otn.oracle.com/software/products/ias/devuse.html
    Enjoy,
    Doug

    This error typically means you have a session that is not logged in.
    How are you acquiring the session?
    Doug

  • How to import multiple XML schemas in Toplink.

    Hi All,
    I try to import multiple Schema(defined by EPCGlobal) in toplink This schema imports few other schemas and all are available in the same location.
    For this I tried to create a project by selecting XML radio button, and specified an XSD. The classes are getting generated for this file. After this, I try to import all other schema's using the Import schema option. I'm able to import it. but, I'm not able to generate classes for the schemas imported recently. Can you please let me know whether this is the expected behaviour..?
    Alternatively, I try to import a Schema(defined by EPCGlobal) in toplink through a TopLink-Jaxb Project. But I get the following exception..
    oracle.xml.parser.schema.XSDException
    at oracle.xml.parser.schema.XSDBuilder.buildSchema(XSDBuilder.java:754)
    at oracle.xml.parser.schema.XSDBuilder.build(XSDBuilder.java:407)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.toplink.workbench.utility.ClassTools.invokeMethodWithException(ClassTools.java:572
    at oracle.toplink.workbench.utility.ClassTools.attemptToInvokeMethodWithException(ClassTools
    .java:198)
    at oracle.toplink.workbench.utility.ClassTools.invokeMethodWithException(ClassTools.java:541
    at oracle.toplink.workbench.utility.ClassTools.invokeMethodWithException(ClassTools.java:526
    at oracle.toplink.workbench.mappingsmodel.schema.MWXmlSchema.reload(MWXmlSchema.java:481)
    at oracle.toplink.workbench.mappingsmodel.schema.MWXmlSchemaRepository.addSchema(MWXmlSchema
    Repository.java:107)
    at oracle.toplink.workbench.mappingsmodel.schema.MWXmlSchemaRepository.createSchemaFromFile(
    MWXmlSchemaRepository.java:89)
    at oracle.toplink.ox.jaxb.compiler.tljaxb.generate(tljaxb.java:70)
    at oracle.toplink.ox.jaxb.compiler.tljaxb.main(tljaxb.java:44)
    I tried to use the "tljaxb.cmd" but there too the same problem occurs.Where the problem could be..? please let me know.
    As I'm struck with this problem, please throw some light in this regard.
    Thanks
    Rajasekaran

    Rajasekaran,
    I have examined your XML schemas and do not believe that the problem is due to the import. Instead it is because the XML schema being imported is itself invalid. I have emailed you the specific correction to your XML schema. It was an error related to the namespace qualification of the type in one of your element declarations.
    -Blaise

  • Sources for package oracle.toplink.internal.expressions in version 10.1.3.5

    Hi there,
    I just downloaded file toplink_101350.zip from Oracle and in folder \toplink\jlib it has a file called toplink-src.zip. When I look at jar file toplink.jar it contains much more packages like oracle.toplink.internal.expressions that in the source file.
    Now where can I get the full oracle toplink source?
    Thanks.
    Regards,
    Joao

    Hi,
    the web appears to be full of such error messages and some point to the use of named native query vs. named query. So here are some options for you to try
    1. Create a test project in 11g using the same tables and compare the generated code with yours to see a difference
    2. Get a 10.1.3.5 project that you haven't migrated and pass it on to customer support for them to have a try on this.
    +"If this is not resolved, we can not chose Jdeveloper as a future IDE at the company..."+ Actually it doesn't appear to be a JDeveloper issue but a TopLink / EclipseLink issue. Abandoning JDeveloper is like shooting the messenger. Just so you know.
    Frank

  • Exception [TOPLINK-43] Error

    I'm trying to setup the Toplink JSP Demo from the examples for a week now and I'm getting the Toplink-43 error. I get this when I run the resetDatabase.sh. I know I can access the DB because the tables have been written, but I don't think the data has been inserted. Also I've been unable to get the sql output to be written out even with the value set to true.
    "Missing Class for indicator field value"
    [toplink:value-holder-indirection-policy] of type [class java.lang.String].
    [java] Descriptor: XMLDescriptor (oracle.toplink.internal.indirection.IndirectionPolicy [DatabaseTable(indirection-policy)]
    My java delvelpment guy hasn't been too much help with this, so I was wondering if someone here can offer some help. I can run the workbench.sh, but haven't pinpointed
    what to change.
    Thanks in advance.

    Something is wrong with the mapping. Was it changed, or are you missing a step where you need to configure/map the project? It could be that you have a class indicator value in the class indicator field in the database that is not mapped. For example, if you've mapped "s" to be "SmallProject" and "l" to be "LargeProject", you may get an error like this if you accidentally had "q" in the database.
    Here is what the docs say on this error:
    Error code: 43
    MISSING_CLASS_FOR_INDICATOR_FIELD_VALUE
    Cause: OracleAS TopLink is missing the class for indicator field value
    classFieldValue of type type. There was no class entry found in the
    inheritance policy for the indicator field value that was read from the database.
    It is likely that the method addClassIndicator(Class class, Object
    typeValue) was not called for the field value. The class and typeValue is
    stored in the hashtable, and later the class is extracted from the hashtable by
    passing typeValue as a key. Because Integer(1) is not equivalent to
    Float(1), this exception occurs when the type of typeValue is incorrectly
    specified.
    Action: Verify the descriptor.

  • How to add a new object to Toplink session cache?

    Toplink Experts,
    I have a question on Toplink 9.0.4.5 (I know this is older version of Toplink but this is what we are using right now). Let me give you little context before I ask the question.
    Toplink server session brokers client sessions (that are spawned by it) and gets changes made in client sessions into server session through transaction commits. Process involved in getting some thing into database using Toplink is: 1) Get client session 2) Register object to be written into database with Toplink's UnitOfWork (UOW). This registration creates two copies of the object registered (original object). Working clone for client application for modifications, backup clone for Toplink to compare the changes made to the working clone later 4) Make changes to the working clone 5) Complete the transaction (and so commit UOW). If transaction commits successfully, Toplink writes the changes from the working clone into database first and applies the same changes made to the working clone to the original object in Toplink server session cache next. Oracle recommends using UOW to write some thing into database. Using UOW involves a transaction and it writes changes into database first before the original object in Toplink server session cache is refreshed.
    Now comes my question: Is there a way to add a brand new object (persistent object) into Toplink server session cache with out writing it first into database? I am OK if I need to use UOW and also to use transaction to make the change but I just want to be able to refresh the original object in the server session cache with out writing any thing into database. If there is a way to do this? What are the disadvantages in doing this way though? I have read Oracle's Toplink developer guide (10.1.3) and Javadocs from Oracle on UnitOfWork/Session etc all related interfaces and classes but I could not find a way. Please help!
    Syam

    There are a couple things wrong with the method you posted. The first being uow.registerObject() is going to cause the object to be treated as new if you are not using the TopLink cache.
    There really is not any supported mechanism to do what you are looking to do. TopLink 11g has the hooks to replace the TopLink cache with a distributed cache (and the TopLink-Grid product uses these to use Coherence as the TopLink cache) but earlier versions did not have this.
    If you are willing to work outside what would be officially supported and no component of the application is using the ServerSession cache (ie all queries refresh) then something like the following may work for you:
    public void prepareObjectForSave(Object userEditedObject, Object gigaSpacesObject)
    UnitOfWork unitOfWork = this.dbContext.getSession().acquireUnitOfWork();
    Descriptor descriptor = this.dbContext.getSession().getDescriptor(gigaSpacesObject);
    Object pkVector = descriptor.getObjectBuilder().extractPrimaryKeyFromObject(gigaSpacesObject, this.dbContext.getSession());
    Object cloneOfMostRecentlyUpdatedObject = (Object)unitOfWork.cloneAndRegisterObject(gigaSpacesObject, new CacheKey(pKVector), descriptor);
    unitOfWork.mergeCloneWithReferences(userEditedObject);
    unitOfWork.commit();
    }You will need to tweak the above code to have it match the APIs in your version of TopLink and you should test thoroughly.
    --Gordon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • WL6.1 and Toplink 3.6.1

    I am having problems with connections not closing, we have a connection pool
    setup to our Sybase ASE 12.0 database using the jconnect driver.
    The connection pool maxes out at 50 connections but after those 50
    connections are gone, requests fail...
    Any Ideas?

    Hello,
    I am having same problem with weblogic6.1sp3 and toplink 903.
    I have one connection pool 'OraclePool'.
    I have two data sources added and refereing to that pool.
    My toplink.xml looks like this.
    <login>
    <datasource>oracleDataSource</datasource>
    <non-jts-datasource>oracleNonJTSDataSource</non-jts-datasource>
    </login>
    I have max capacity of 60 to that pool.
    When i run sql queries simultaneously server works ok, it uses all connections efficiently.
    But when i use update method using toplink, connections max out.
    And it says 'No connections available in the pool'.
    How can we find out if toplink closes connections efficiently
    after each transaction. Please let me know
    what is wrong with my setup.
    Thanks
    George

  • Crucial question about Toplink Essentials JPA in OC4J 10.1.3.3

    Hi all!
    I'm developing an EJB 3.0 service which will be deployed to an OracleAS 10.1.3.3 and even after I've read lots of docs and articles, I still got an unanswered question:
    I know JPA leaves concurrent data access to the application's responsibility (or the vendor implementation's), that Oracle explicitly recommends using @Version to enable JPA's standard optimistic locking and also that Toplink Essentials JPA is OC4J's default persistence provider for EJB 3.0 modules. Considering this last important fact, what will be the default locking mode assumed by Toplink Essentials if I don't use @Version?
    Looking at Toplink Essentials JPA extensions doc preview for OC4J 11g (http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-extensions.html), I found that I can use @OptimisticLocking to define the locking policy when defining an entity and use a lock type that doesn't require me to define a @Version field. But that annotation doesn't exist in version 10.1.3.3. Is there another way to define locking policy and type (on global or per entity basis) in version 10.1.3.3?
    Any help will be really welcome!
    TIA,
    Eduardo.

    Quoting Mr. Doug Clarke:
    "Eduardo,
    The only way to ensure that concurrent writers to the database don't overwrite one another is to either lock optimistically or pessimistically (i.e.: SELECT ... FOR UPDATE). Both of these approaches are supported by Oracle TopLink as well as TopLink Essentials. If neither is used then no locking is applied and the last writer will succeed leaving the database in a potentially corrupted state. Also note that minimal writes are used so each thread only updates the columns it changes so the resulting state of the database could be a combination of the two concurrent writes. Users of JPA are strongly recommended to use optimistic locking to ensure concurrent writing scenarios do not produce unexpected result in their database.
    Our JPA implementation in 10.1.3.3 is TopLink Essentials which is the Open Source references implementation of JPA derived from Oracle TopLink developed in GlassFish. This edition of TopLink only has support for JPA's @Version annotation as you noted. This approach does require a dedicated column in the database table for comparison on write to detect changes made since this thread's version of the original data was read.
    In Oracle TopLink 11g we have implemented JPA 1.0 in our product. This means that full capabilities of TopLink are available through JPA along with some custom annotations to assist in configuring them. This includes the additional optimistic locking policies provided for schemas where adding version columns is not possible. These capabilities are not included in TopLink Essentials. Customers can access these capabilities in the 11gR1 technology previews as well as in the new Eclipse Persistence Services Project "EclipseLink" which is the full functionality of Oracle TopLink developed as an open source solution. Oracle TopLink 11g and its distribution of EclipseLink are not yet available in a supported release."

  • Toplink Mysql Connection pool issues

    I am frequently seeing threads in wait state on toplink connection pool, I have given the stack trace below, anyone has any ideas as to what is happening? is it
    related to connection timeout? or other causes...
    "http-0.0.0.0-8080-2" id=397 idx=0x620 tid=5344 prio=5 alive, in native, waiting
    , daemon
    -- Waiting for notification on: oracle/toplink/threetier/ConnectionPool@0x00
    F181D8[fat lock]
    at jrockit/vm/Threads.waitForNotifySignal(JLjava/lang/Object;)Z(Native Metho
    d)
    at java/lang/Object.wait(J)V(Native Method)[optimized]
    at java/lang/Object.wait(Object.java:474)
    at oracle/toplink/threetier/ConnectionPool.acquireConnection(ConnectionPool.
    java:65)
    ^-- Lock released while waiting: oracle/toplink/threetier/ConnectionPool@0x0
    0F181D8[fat lock]
    at oracle/toplink/threetier/ServerSession.allocateReadConnection(ServerSessi
    on.java:412)
    at oracle/toplink/threetier/ServerSession.executeCall(ServerSession.java:443
    at oracle/toplink/internal/queryframework/DatasourceCallQueryMechanism.execu
    teCall(DatasourceCallQueryMechanism.java:193)
    at oracle/toplink/internal/queryframework/DatasourceCallQueryMechanism.execu
    teCall(DatasourceCallQueryMechanism.java:179)
    at oracle/toplink/internal/queryframework/DatasourceCallQueryMechanism.execu
    teSelectCall(DatasourceCallQueryMechanism.java:250)
    at oracle/toplink/internal/queryframework/DatasourceCallQueryMechanism.selec
    tAllRows(DatasourceCallQueryMechanism.java:583)
    at oracle/toplink/internal/queryframework/ExpressionQueryMechanism.selectAll
    RowsFromTable(ExpressionQueryMechanism.java:2483)
    at oracle/toplink/internal/queryframework/ExpressionQueryMechanism.selectAll
    Rows(ExpressionQueryMechanism.java:2441)
    at oracle/toplink/queryframework/ReadAllQuery.executeObjectLevelReadQuery(Re
    adAllQuery.java:467)
    at oracle/toplink/queryframework/ObjectLevelReadQuery.executeDatabaseQuery(O
    bjectLevelReadQuery.java:874)
    at oracle/toplink/queryframework/DatabaseQuery.execute(DatabaseQuery.java:67
    4)
    at oracle/toplink/queryframework/ObjectLevelReadQuery.execute(ObjectLevelRea
    dQuery.java:835)
    at oracle/toplink/queryframework/ReadAllQuery.execute(ReadAllQuery.java:445)
    at oracle/toplink/internal/sessions/AbstractSession.internalExecuteQuery(Abs
    tractSession.java:2260)
    at oracle/toplink/internal/sessions/AbstractSession.executeQuery(AbstractSes
    sion.java:1074)
    at oracle/toplink/internal/sessions/AbstractSession.executeQuery(AbstractSes
    sion.java:1058)
    at oracle/toplink/internal/sessions/AbstractSession.executeQuery(AbstractSes
    sion.java:1017)
    at com/integral/query/QueryServiceC.executeQuery(QueryServiceC.java:1030)
    at com/integral/query/QueryServiceC._find(QueryServiceC.java:525)
    at com/integral/query/QueryServiceC._findAll(QueryServiceC.java:123)
    at com/integral/query/QueryServiceC.findAll(QueryServiceC.java:83)
    at com/integral/query/ejb/QueryServiceC.findAll(QueryServiceC.java:59)

    Hello,
    It looks like you are using a TopLink managed connection pool and do not have enough connections available for the number of threads needing to use one. This results in threads having to wait until one is released from another thread. In the thread shown, it is waiting to get a read connection from the read pool.
    TopLink connection pools are described in the docs at:
    http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/srvclius002.htm#CHDJAECD
    I'd recommend increasing the min/max number of connections to something that is appropriate to handle your peak load based on your applications usage paterns.
    Best Regards,
    Chris

  • Toplink Upgrade

    Hi,
    My company uses Toplink 3.6.3 and we want to upgrade to latest. Is the latest toplink sold independently (without 9iAS)? or to buy new toplink we need to buy the 9iAS along?
    Also, where can I find differences between latest version and 3.6.3
    Regards,
    Vikas

    Vikas,
    We recently announced the availability of the Oracle9iAS Java Edition (http://www.oracle.com/ip/deploy/ias/features/index.html?java_edition.html).
    With this release TopLink is now available in the Java, Standard, & Enterprise editions of 9iAS. The new Java Edition reduces the price of TopLink and does include the application server as well (and JDeveloper).
    Although it is bundled for increased cost savings it is still provided as a stand-alone installer and we continue to support non-Oracle J2EE servers ahnd databases.
    Doug Clarke
    Oracle9iAS TopLink
    Product Manager

  • Weblogic 6.1 and Toplink 3.6.1

    I am having problems with connections not closing, we have a connection pool
    setup to our Sybase ASE 12.0 database using the jconnect driver.
    The connection pool maxes out at 50 connections but after those 50
    connections are gone, requests fail...
    Any Ideas?

    Hello,
    I am having same problem with weblogic6.1sp3 and toplink 903.
    I have one connection pool 'OraclePool'.
    I have two data sources added and refereing to that pool.
    My toplink.xml looks like this.
    <login>
    <datasource>oracleDataSource</datasource>
    <non-jts-datasource>oracleNonJTSDataSource</non-jts-datasource>
    </login>
    I have max capacity of 60 to that pool.
    When i run sql queries simultaneously server works ok, it uses all connections efficiently.
    But when i use update method using toplink, connections max out.
    And it says 'No connections available in the pool'.
    How can we find out if toplink closes connections efficiently
    after each transaction. Please let me know
    what is wrong with my setup.
    Thanks
    George

  • Oracle JHeadstart 10g release 9.0.5.1 now available!

    All,
    Oracle JHeadstart 10g Release 9.0.5.1 is now available. More than a month ago Oracle released Oracle JDeveloper 10g (9.0.5.1). This new JHeadstart release is certified against both JDeveloper 9.0.5.1 and 9.0.5.2. You can now benefit the strong combination of the new versions of Oracle JDeveloper and JHeadstart.
    What is Oracle JHeadstart?
    JHeadstart is a development tool kit, fully integrated with JDeveloper, that enables rapid component based development of J2EE applications using the Model-View-Controller (MVC) design pattern. It provides customers with 4GL-like productivity without jeopardizing the flexibility and openness of the J2EE architecture. In addition it includes a bridge from Oracle Designer that enables customers to generate fully functioning J2EE applications from Oracle Designer or to migrate Oracle Forms to J2EE.
    What is new in this release?
    In addition to the certification mentioned above this release includes the following new features:
    - Support for Oracle TopLink, adding extra flexibility.
    - A Tutorial that describes and a demo application that shows how to use JHeadstart in conjunction with TopLink based on multiple project experiences.
    - Links from the Applications Structure File editor to both the BC4J property editor as well as the JHeadstart Application Generator which streamlines the development process.
    - Pop-lists for regions and domains to prevent typing errors
    - Generation of regions in JSP pages
    - Fixes, for a complete list of fixes please refer to the release notes.
    Where to download?
    This maintenance release can be downloaded from the supplement option portal ( http://cso.oracle.com/ ) for customers that hold a supplement option license. It will be available for evaluation purposes on OTN later on.
    Where to go for more information?
    For more information go to the JHeadstart Product Center on OTN http://otn.oracle.com/consulting/9iServices/JHeadstart2.html.
    Regards,
    Ton van Kooten
    JHeadstart Team
    Oracle

    We already purchased the Jheadstart supplement option, but our Oracle Consulting sales contact didn't have walked us through the registration process in before. I had contact them and ask them to assist us, but they need some work days. so could you help me to download JHeadstart 10g release 9.0.5.1 as soon as possible. our project schedule need this released version in hurry.If you can help me please give me a notice, thanks a lot.
    my email address:[email protected]

  • AUSOUG/OAUG 2006 Australian conference - JDeveloper content

    The AUSOUG and OAUG committees are very excited to announce the 2006 conference series is less than three months away. While our American neighbours are focusing on Oracle OpenWorld in October, and our UKOUG friends on their (extended!) November conference, Australians will not miss out with the largest Oracle user group conference in Australia to date. This year we're condensing our content into two key conferences, in Melbourne and Perth, a East Coast to West Coast series of the best presentations by Australian and overseas Oracle talent.
    The Melbourne and Perth schedules are now available at: http://www.ausoug.org.au/2020
    In particular Australian JDeveloper users should be interested in the following presentations:
    • Chris Schalk, JDeveloper Principal Product Manager at Oracle Corporation co-author of "JavaServer Faces: The Complete Reference" and Java evangelist for Oracle's Application Server and JDeveloper will be presenting exclusively in Perth on "JDeveloper 10.1.3", "Lockdown! Securing your ADF Applications" and "Developing JavaServer Faces applications with Oracle". Can anybody say AJAX? But don't worry Melbourne because Oracle has kindly agreed to fly in Lynn Munsinger from the USA, Principal Product Manager in the JDeveloper development team at Oracle, specializing in EJB, TopLink, ADF, and ADF Faces and author of Oracle University courses, including, "Oracle10g: Build J2EE Applications".
    • Oracle Magazine Educator of the Year 2004 Penny Cookson, winner of best paper awards at 4 APAC OpenWorld will be presenting on "Old Forms programmers never die, they just switch to JDeveloper (a view of the ADF framework for Forms developers)"
    • In turn two local members Brenden Anstey and Ray Tindall will be presenting on "ADF Development Best Practices – Starting out with a new technology" and "Active Directory Integration - OID & AD in Harmony".
    That represents great support for Oracle and great JDeveloper content for developers.
    There are plenty of other speakers too, so checkout out website for the latest info: http://www.ausoug.org.au/2020
    We hope you will support the user group like it supports you, and we will see you at our conference in November!
    Regards,
    Chris Muir
    President of the Victorian Branch
    Australian Oracle User Group (AUSOUG)
    www.ausoug.org.au/2020
    Email: [email protected]

    I think this is a great opportunity to get face to face with my collegues in Oracle Product Management to get the inside track on the technologies and learn, not only how to use them, but where they are moving in the future...
    Best of luck with the event Chris.
    Grant Ronald
    Oracle Product Management
    p.s. and of course there is a huge amount of JEE material being delivered at Oracle World as well if you can't make it to Australia.

  • Named query creates wrong cast: CAST (? AS VARCHAR(32672))

    Hello!
    I'am working with Toplink on DB2 - which works great, so far - but now I face the following problem:
    A named query produces the following sql-code:
    ... WHERE (SAMPLEFIELDNAME = CAST (? AS VARCHAR(32672) ))
    The problem ist the cast: the data-base-fieldtype is a VARCHAR(255) so get an SQL-Exception. I can't change the database-schema, because this is legacy-stuff. I tried a lot (columnDefinition and length in @Column-annotation seem to be ignored at all) - but nothing worked.
    Thank you!
    Siegfried

    Hi,
    The DB2 Platform hard coded the casting of Strings to VARCHAR(32672) in the oracle.toplink.platform.database.DB2Platform class' writeParameterMarker method. So if the type is set to a String class on the argument, it will always be cast to VARCHAR(32672). You will need to override the writeParameterMarker method on a custom platform (extending DB2Platform) in such a way that if a string is given, VARCHAR(255) is used instead. That is, assuming all your strings are of size 255.
    Best Regards,
    Chris

Maybe you are looking for