{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7484","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7484/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7484/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/7484/events","html_url":"https://github.com/spring-projects/spring-boot/issues/7484","id":191663619,"number":7484,"title":"SchemaManagementException found [text (Types#LONGVARCHAR)], but expecting [varchar(255) (Types#VARCHAR)]","user":{"login":"alex-135","id":14899507,"avatar_url":"https://avatars.githubusercontent.com/u/14899507?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-135","html_url":"https://github.com/alex-135","followers_url":"https://api.github.com/users/alex-135/followers","following_url":"https://api.github.com/users/alex-135/following{/other_user}","gists_url":"https://api.github.com/users/alex-135/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-135/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-135/subscriptions","organizations_url":"https://api.github.com/users/alex-135/orgs","repos_url":"https://api.github.com/users/alex-135/repos","events_url":"https://api.github.com/users/alex-135/events{/privacy}","received_events_url":"https://api.github.com/users/alex-135/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-25T09:54:57Z","updated_at":"2016-11-25T09:54:57Z","closed_at":null,"body":"spring boot pom.xml\r\n<parent>\r\n\t\t<groupId>org.springframework.boot</groupId>\r\n\t\t<artifactId>spring-boot-starter-parent</artifactId>\r\n\t\t<version>1.4.1.RELEASE</version>\r\n\t\t<relativePath />\r\n\t</parent>\r\n\r\napplicatoin:\r\n@EnableDiscoveryClient\r\n@SpringBootApplication\r\npublic class Application {\r\n\tpublic static void main(String[] args) {\r\n\t\tnew SpringApplicationBuilder(Application.class).web(true).run(args);\r\n}\r\n}\r\n\r\n@Configuration\r\n@EnableTransactionManagement\r\n@EnableJpaRepositories(entityManagerFactoryRef = \"entityManagerFactoryPrimary\", transactionManagerRef = \"transactionManagerPrimary\", basePackages = {\r\n\t\t\"com.respority\" })\r\npublic class PrimaryConfig {\r\n\t@Autowired\r\n\tprivate JpaProperties jpaProperties;\r\n\r\n\t@Autowired\r\n\t@Qualifier(\"primaryDataSource\")\r\n\tprivate DataSource primaryDataSource;\r\n\r\n\t@Bean(name = \"entityManagerPrimary\")\r\n\t@Primary\r\n\tpublic EntityManager entityManager(EntityManagerFactoryBuilder builder) {\r\n\t\treturn entityManagerFactoryPrimary(builder).getObject().createEntityManager();\r\n\t}\r\n\r\n\t@Bean(name = \"entityManagerFactoryPrimary\")\r\n\t@Primary\r\n\tpublic LocalContainerEntityManagerFactoryBean entityManagerFactoryPrimary(EntityManagerFactoryBuilder builder) {\r\n\t\treturn builder.dataSource(primaryDataSource).properties(getVendorProperties(primaryDataSource))\r\n\t\t\t\t.packages(\"com.entity\") \r\n\t\t\t\t.persistenceUnit(\"primaryPersistenceUnit\").build();\r\n\t}\r\n\r\n\tprivate Map<String, String> getVendorProperties(DataSource dataSource) {\r\n\t\treturn jpaProperties.getHibernateProperties(dataSource);\r\n\t}\r\n\r\n\t@Bean(name = \"transactionManagerPrimary\")\r\n\t@Primary\r\n\tPlatformTransactionManager transactionManagerPrimary(EntityManagerFactoryBuilder builder) {\r\n\t\treturn new JpaTransactionManager(entityManagerFactoryPrimary(builder).getObject());\r\n\t}\r\n\r\n}\r\n\r\n\r\nentity:\r\n@Column(name = \"description\", nullable = false, length = 65535, columnDefinition=\"TEXT\")\r\nprivate String description;// mysql 5.6\r\n\r\nCaused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [description] in table [table]; found [text (Types#LONGVARCHAR)], but expecting [varchar(255) (Types#VARCHAR)]\r\n\r\n"}}
{"actor":{"display_login":"alex-135"}}