You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Peter Anders Hvass (JIRA)" <ji...@apache.org> on 2015/03/31 12:43:53 UTC

[jira] [Updated] (CAY-1994) Modeler Migration Tool Shows No Changes

     [ https://issues.apache.org/jira/browse/CAY-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Anders Hvass updated CAY-1994:
------------------------------------
    Description: 
This would work flawlessly in 3.1 so I figured it best to report a bug given that it blanks out on me in 4.0M2.

Steps I use to produce this issue;
1. Open the modeler.
2. Load my project configuration.
3. Add a new db entity inside a data map.
3. Click on that data map.
4. Click Tools -> Migrate Database Schema
5. Select my test data source (a remote MySQL server);
* Driver: com.mysql.jdbc.Driver
* DB URL; jdbc:mysql://mydb.com/schema
* User Name; username
* Password; password
* Adapter; org.apache.cayenne.dba.mysql.MySQLAdapter
6. Click Continue.. and wait..
7. Migration dialog window pops open
8. No changes are listed - just an empty list of results.

My Cayenne config looks like this;
{code:xml}
<?xml version="1.0" encoding="utf-8"?>
<domain project-version="7">
	<property name="cayenne.DataDomain.sharedCache" value="false"/>
	<property name="cayenne.DataRowStore.EventBridge.factory" value="org.apache.cayenne.event.JavaGroupsBridgeFactory"/>
	<property name="cayenne.JavaGroupsBridge.mcast.address" value="228.0.0.5"/>
	<property name="cayenne.JavaGroupsBridge.mcast.port" value="22222"/>

	<map name="db"/>

	<node name="test"
		 factory="org.apache.cayenne.configuration.server.XMLPoolingDataSourceFactory"
		 schema-update-strategy="org.apache.cayenne.access.dbsync.CreateIfNoSchemaStrategy"
		>
		<map-ref name="db"/>
		<data-source>
			<driver value="com.mysql.jdbc.Driver"/>
			<url value="jdbc:mysql://somedb/schema"/>
			<connectionPool min="1" max="5"/>
			<login userName="root" password="password"/>
		</data-source>
	</node>
</domain>
{code}

  was:
This would work flawlessly in 3.1 so I figured it best to report a bug given that it blanks out on me in 4.0M2.

Steps I use to produce this issue;
1. Open the modeler.
2. Load my project configuration.
3. Add a new db entity inside a data map.
3. Click on that data map.
4. Click Tools -> Migrate Database Schema
5. Select my test data source (a remote MySQL server);
* Driver: com.mysql.jdbc.Driver
* DB URL; jdbc:mysql://mydb.com/schema
* User Name; username
* Password; password
* Adapter; org.apache.cayenne.dba.mysql.MySQLAdapter
6. Click Continue.. and wait..
7. Migration dialog window pops open
8. No changes are listed - just an empty list of results.

My Cayenne config looks like this;
{code:xml}
<?xml version="1.0" encoding="utf-8"?>
<domain project-version="7">
	<property name="cayenne.DataDomain.sharedCache" value="false"/>
	<property name="cayenne.DataRowStore.EventBridge.factory" value="org.apache.cayenne.event.JavaGroupsBridgeFactory"/>
	<property name="cayenne.JavaGroupsBridge.mcast.address" value="228.0.0.5"/>
	<property name="cayenne.JavaGroupsBridge.mcast.port" value="22222"/>

	<map name="db"/>

	<node name="test"
		 factory="org.apache.cayenne.configuration.server.XMLPoolingDataSourceFactory"
		 schema-update-strategy="org.apache.cayenne.access.dbsync.CreateIfNoSchemaStrategy"
		>
		<map-ref name="db"/>
		<data-source>
			<driver value="com.mysql.jdbc.Driver"/>
			<url value="jdbc:mysql://db.jamesinnes.com/testmain"/>
			<connectionPool min="1" max="5"/>
			<login userName="root" password="0ufMx0NshmnHC4Cb"/>
		</data-source>
	</node>
</domain>
{code}


> Modeler Migration Tool Shows No Changes
> ---------------------------------------
>
>                 Key: CAY-1994
>                 URL: https://issues.apache.org/jira/browse/CAY-1994
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 4.0.M2
>         Environment: Windows 7 64-bit, Java 7 64-bit
>            Reporter: Peter Anders Hvass
>
> This would work flawlessly in 3.1 so I figured it best to report a bug given that it blanks out on me in 4.0M2.
> Steps I use to produce this issue;
> 1. Open the modeler.
> 2. Load my project configuration.
> 3. Add a new db entity inside a data map.
> 3. Click on that data map.
> 4. Click Tools -> Migrate Database Schema
> 5. Select my test data source (a remote MySQL server);
> * Driver: com.mysql.jdbc.Driver
> * DB URL; jdbc:mysql://mydb.com/schema
> * User Name; username
> * Password; password
> * Adapter; org.apache.cayenne.dba.mysql.MySQLAdapter
> 6. Click Continue.. and wait..
> 7. Migration dialog window pops open
> 8. No changes are listed - just an empty list of results.
> My Cayenne config looks like this;
> {code:xml}
> <?xml version="1.0" encoding="utf-8"?>
> <domain project-version="7">
> 	<property name="cayenne.DataDomain.sharedCache" value="false"/>
> 	<property name="cayenne.DataRowStore.EventBridge.factory" value="org.apache.cayenne.event.JavaGroupsBridgeFactory"/>
> 	<property name="cayenne.JavaGroupsBridge.mcast.address" value="228.0.0.5"/>
> 	<property name="cayenne.JavaGroupsBridge.mcast.port" value="22222"/>
> 	<map name="db"/>
> 	<node name="test"
> 		 factory="org.apache.cayenne.configuration.server.XMLPoolingDataSourceFactory"
> 		 schema-update-strategy="org.apache.cayenne.access.dbsync.CreateIfNoSchemaStrategy"
> 		>
> 		<map-ref name="db"/>
> 		<data-source>
> 			<driver value="com.mysql.jdbc.Driver"/>
> 			<url value="jdbc:mysql://somedb/schema"/>
> 			<connectionPool min="1" max="5"/>
> 			<login userName="root" password="password"/>
> 		</data-source>
> 	</node>
> </domain>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)