Error In Jdo During Get Of Database Object Id
information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 */ 21 22 import org.apache.commons.lang.StringUtils; 23 import org.apache.maven.archiva.database.ArchivaDatabaseException; 24 import org.apache.maven.archiva.database.Constraint; 25 import org.apache.maven.archiva.database.DeclarativeConstraint; 26 import org.apache.maven.archiva.database.ObjectNotFoundException; 27 import org.apache.maven.archiva.database.SimpleConstraint; 28 import org.apache.maven.archiva.database.constraints.AbstractSimpleConstraint; 29 import org.apache.maven.archiva.model.CompoundKey; 30 import org.codehaus.plexus.jdo.JdoFactory; 31 import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable; 32 import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; 33 34 import java.io.PrintStream; 35 import java.util.ArrayList; 36 import java.util.List; 37 import javax.jdo.Extent; 38 import javax.jdo.JDOException; 39 import javax.jdo.JDOHelper; 40 import javax.jdo.JDOObjectNotFoundException; 41 import javax.jdo.JDOUserException; 42 import javax.jdo.PersistenceManager; 43 import javax.jdo.PersistenceManagerFactory; 44 import javax.jdo.Query; 45 import javax.jdo.Transaction; 46 import javax.jdo.datastore.DataStoreCache; 47 import javax.jdo.listener.InstanceLifecycleEvent; 48 import javax.jdo.listener.InstanceLifec
Support Partners Console Google App EngineProduct OverviewEnvironmentsJava Standard EnvironmentDocumentationQuickstartHow-to GuidesAll How-to GuidesInstall the App Engine SDK for JavaDeveloping Java Apps on App EngineSetting up Intellij IDEATesting and DebuggingUsing the Local Development ServerLocal Unit TestingLocal Unit Testing OverviewLocal Unit Testing JavadocOverviewcom.google.appengine.api.appidentity.devcom.google.appengine.api.blobstore.devcom.google.appengine.api.capabilities.devcom.google.appengine.api.datastore.devcom.google.appengine.api.files.devcom.google.appengine.api.images.devcom.google.appengine.api.log.devcom.google.appengine.api.mail.devcom.google.appengine.api.memcache.devcom.google.appengine.api.prospectivesearch.devcom.google.appengine.api.search.devcom.google.appengine.api.socket.devcom.google.appengine.api.taskqueue.devcom.google.appengine.api.urlfetch.devcom.google.appengine.api.users.devcom.google.appengine.api.xmpp.devcom.google.appengine.tools.development.testingClass HierarchyConstant ValuesDeprecated ListIndexMonitoring https://archiva.apache.org/ref/1.3.5/xref/org/apache/maven/archiva/database/jdo/JdoAccess.html and LoggingMonitoring Latency with Stackdriver TraceDetecting Outages and Downtime with the Capabilities APIConfiguring Dashboards and Alerts with Cloud MonitoringDownloading LogsIntegrating with Google AnalyticsConfiguring warmup requestsOverview of warmup requestsConfiguring warmup requestsManaging and Configuring Your AppDeploying Your AppSplitting TrafficMigrating TrafficCreating https://cloud.google.com/appengine/docs/java/datastore/jdo/creatinggettinganddeletingdata a Project and Managing BillingGranting Project AccessUsing Custom Domains and SSLManaging App ResourcesConfiguring DoS protectionProgramatically Managing Your AppUsing the Admin APIOverviewGetting StartedTrying the APIAccessing the APIUsing Client LibrariesDeploying Versions to Your AppMigrating and Splitting TrafficREST and RPC API ReferenceUsing the Modules APIDownloading Your Source CodeConfiguring Your Java App with YAML FilesBackends ConfigIndex ConfigScheduled TasksTask Queue ConfigStoring DataChoosing a Storage OptionGoogle Cloud DatastoreGoogle Cloud Datastore OverviewCreating, Retrieving, Updating, and Deleting EntitiesCreating and Using Entity KeysRetrieving Query ResultsManaging Datastore from the ConsoleOverviewViewing Datastore StatisticsBacking Up and RestoringConfiguring Datastore IndexesGoogle Cloud SQLUsing Google Cloud SQLPricing and Acccess LimitsGoogle Cloud StorageSetting Up Cloud StorageReading and Writing to Cloud StorageUsing Third-Party DatabasesSuperseded Storage SolutionsBlobstoreBlobstore
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/15065552/unable-to-get-id-of-newly-created-jdo-persistent-entity-using-gae-j-datanucleus this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question http://www.datanucleus.org/products/datanucleus/jdo/value_generation.html x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error in Unable to get ID of newly-created JDO persistent entity using GAE/J DataNucleus plug-in version 2.1.2 up vote 3 down vote favorite 2 My problem I am porting my application from version 1.x to 2.0 of the DataNucleus plug-in for GAE/J using the new 1.7.5 GAE/J SDK. This changes my JDO version from 2.3 to 3.0.1. My persistent entity class has a primary key error in jdo of type encoded string, along with read-only access to the object’s numeric ID. Each instance is the sole member of its entity group (children and parent are linked by numeric ID only). Previously, I have been able to create and persist a new MyEntity instance and then immediately access its numeric ID to store in the parent MyEntity instance’s list of child IDs. Now I find that the new instance’s numeric ID is not available immediately after persistence – even though it is generated and stored and is available later. My question Is there anything I can do to restore access to the numeric ID immediately following object creation and persistence? "jdoconfig.xml" configuration extract
Properties DataNucleus AccessPlatform 5.0 Documentation General What's New ? Upgrade Migration Getting Started Dependencies Persistence API Choice Development Process Compatibility Datastore Supported Features RDBMS ODF Excel (XLS) Excel (OOXML) XML HBase MongoDB Cassandra Neo4j JSON Amazon S3 GoogleStorage LDAP NeoDatis JDO API Mapping Class Mapping Identity Datastore Identity Application Identity Nondurable Identity Compound Identity Versioning Inheritance Fields/Properties Java Types Value Generation Sequences Embedded Fields Serialised Fields Interface Fields Object Fields Array Fields 1-to-1 Relations 1-to-N Collections 1-to-N Lists 1-to-N Maps N-to-1 Relations M-to-N Relations Cascading MetaData Reference XML Annotations MetaData API ORM MetaData Schema Mapping Multitenancy Datastore Identifiers Secondary Tables Constraints Bean Validation Enhancer Datastore Schema API Javadocs PersistenceManagerFactory Persistence Properties L2 Cache Auto-Start Data Federation PersistenceManager Managing Relationships PM Proxy Object Lifecycle Lifecycle Callbacks Attach/Detach Datastore Connection Transactions Fetch Groups Query API Query Cache JDOQL JDOQL Geospatial Methods JDOQL Declarative API JDOQL Typesafe API SQL Stored Procedures JPQL Development Guides Datastore Replication JavaEE Environments OSGi Environments Security Troubleshooting Performance Tuning Monitoring Logging Maven with DataNucleus Eclipse with DataNucleus IDEA with DataNucleus Netbeans with DataNucleus DAO Layer Design Samples Tutorial with RDBMS Tutorial with ODF Tutorial with Excel Tutorial with MongoDB Tutorial with HBase Tutorial with Neo4J Tutorial with Cassandra 1-N Bidir FK Relation 1-N Bidir Join Relation M-N Relation M-N Attributed Relation Spatial Types Tutorial JPA API Mapping Class Mapping Identity Application Identity Datastore Identity Nondurable Identity Compound Identity Versioning Inheritance Fields/Properties Java Types Value Generation Embedded Fields Serialised Fields Interface Fields Object Fields Array Fields 1-to-1 Relations 1-to-N Collections 1-to-N Lists 1-to-N Maps N-to-1 Relations M-to-N Relations Cascading MetaData Reference XML Annotations Schema Mapping Multitenancy Datastore Identifiers Secondary Tables Constraints Bean Validation Enhancer Datastore Schema API Javadocs EntityManagerFactory Persistence Properties L2 Cache Entity Manager Mana