<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Техно-логи &#187; java</title>
	<atom:link href="http://www.kurdyukov.com/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kurdyukov.com</link>
	<description>Заметки о разработке и прочей жизни</description>
	<lastBuildDate>Sat, 04 Feb 2012 01:34:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Опыт с Spring Roo</title>
		<link>http://www.kurdyukov.com/2009/10/10/spring-roo/</link>
		<comments>http://www.kurdyukov.com/2009/10/10/spring-roo/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 06:05:28 +0000</pubDate>
		<dc:creator>alik</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[idea]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://www.kurdyukov.com/?p=95</guid>
		<description><![CDATA[У меня возникла задача создать простенький веб-сайт с функциональностью доступа пользователей сайта к некоторой закрытой информации. При этом регистрация пользователей происходит третьим способом, но через сайт пользователи могут поменять свой пароль. Закрытая часть сайта содержит простенький интерактив по работе с закрытой информацией (создать, изменить, удалить), а также функционал по управлению пользователями &#8211; для админов. Для [...]]]></description>
			<content:encoded><![CDATA[<p>У меня возникла задача создать простенький веб-сайт с функциональностью доступа пользователей сайта к некоторой закрытой информации. При этом регистрация пользователей происходит третьим способом, но через сайт пользователи могут поменять свой пароль. Закрытая часть сайта содержит простенький интерактив по работе с закрытой информацией (создать, изменить, удалить), а также функционал по управлению пользователями &#8211; для админов.<br />
Для такого проекта я решил попробовать Spring Roo.<br />
<span id="more-95"></span><br />
Установка происходит просто, maven у меня уже был развернут. Далее я по инструкциями создал все необхомые вещи:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p95code2'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p952"><td class="code" id="p95code2"><pre class="bash" style="font-family:monospace;">alik-kurdyukovs-computer:testportal alik$ roo
    ____  ____  ____  
   <span style="color: #000000; font-weight: bold;">/</span> __ \<span style="color: #000000; font-weight: bold;">/</span> __ \<span style="color: #000000; font-weight: bold;">/</span> __ \ 
  <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>_<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span> 
 <span style="color: #000000; font-weight: bold;">/</span> _, _<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>_<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>_<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>  
<span style="color: #000000; font-weight: bold;">/</span>_<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">|</span>_<span style="color: #000000; font-weight: bold;">|</span>\____<span style="color: #000000; font-weight: bold;">/</span>\____<span style="color: #000000; font-weight: bold;">/</span>    1.0.0.RC1 <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #c20cb9; font-weight: bold;">rev</span> <span style="color: #000000;">198</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>
&nbsp;
&nbsp;
Welcome to Spring Roo. For assistance press TAB or <span style="color: #7a0874; font-weight: bold;">type</span> <span style="color: #ff0000;">&quot;hint&quot;</span> <span style="color: #000000; font-weight: bold;">then</span> hit ENTER.
roo<span style="color: #000000; font-weight: bold;">&gt;</span> create project <span style="color: #660033;">-topLevelPackage</span> ru.test.testportal <span style="color: #660033;">-projectName</span> testportal
Created <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>alik<span style="color: #000000; font-weight: bold;">/</span>Development<span style="color: #000000; font-weight: bold;">/</span>projects<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>pom.xml
Created SRC_MAIN_JAVA
Created SRC_MAIN_RESOURCES
Created SRC_TEST_JAVA
Created SRC_TEST_RESOURCES
Created SRC_MAIN_WEBAPP
Created SRC_MAIN_RESOURCES<span style="color: #000000; font-weight: bold;">/</span>META-INF<span style="color: #000000; font-weight: bold;">/</span>spring
Managed ROOT<span style="color: #000000; font-weight: bold;">/</span>pom.xml
Created SRC_MAIN_RESOURCES<span style="color: #000000; font-weight: bold;">/</span>META-INF<span style="color: #000000; font-weight: bold;">/</span>spring<span style="color: #000000; font-weight: bold;">/</span>applicationContext.xml
roo<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">install</span> jpa <span style="color: #660033;">-provider</span> HIBERNATE <span style="color: #660033;">-database</span> POSTGRESQL
Created SRC_MAIN_RESOURCES<span style="color: #000000; font-weight: bold;">/</span>META-INF<span style="color: #000000; font-weight: bold;">/</span>persistence.xml
Created SRC_MAIN_RESOURCES<span style="color: #000000; font-weight: bold;">/</span>META-INF<span style="color: #000000; font-weight: bold;">/</span>spring<span style="color: #000000; font-weight: bold;">/</span>database.properties
please enter your database details <span style="color: #000000; font-weight: bold;">in</span> src<span style="color: #000000; font-weight: bold;">/</span>main<span style="color: #000000; font-weight: bold;">/</span>resources<span style="color: #000000; font-weight: bold;">/</span>database.properties
Managed SRC_MAIN_RESOURCES<span style="color: #000000; font-weight: bold;">/</span>META-INF<span style="color: #000000; font-weight: bold;">/</span>spring<span style="color: #000000; font-weight: bold;">/</span>applicationContext.xml
Managed ROOT<span style="color: #000000; font-weight: bold;">/</span>pom.xml
roo<span style="color: #000000; font-weight: bold;">&gt;</span> database properties
database.driverClassName = org.postgresql.Driver
database.password = 
database.url = jdbc:postgresql:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">5432</span>
database.username = 
roo<span style="color: #000000; font-weight: bold;">&gt;</span> database <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-key</span> database.url <span style="color: #660033;">-value</span> jdbc:postgresql:<span style="color: #000000; font-weight: bold;">//</span>localhost:<span style="color: #000000;">5432</span><span style="color: #000000; font-weight: bold;">/</span>testportaldb
Managed SRC_MAIN_RESOURCES<span style="color: #000000; font-weight: bold;">/</span>META-INF<span style="color: #000000; font-weight: bold;">/</span>spring<span style="color: #000000; font-weight: bold;">/</span>database.properties
roo<span style="color: #000000; font-weight: bold;">&gt;</span> database <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-key</span> database.username <span style="color: #660033;">-value</span> testportal
roo<span style="color: #000000; font-weight: bold;">&gt;</span> database <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #660033;">-key</span> database.password <span style="color: #660033;">-value</span> testportalpass
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add dependency <span style="color: #660033;">-groupId</span> postgresql <span style="color: #660033;">-artifactId</span> postgresql <span style="color: #660033;">-version</span> <span style="color: #000000;">8.3</span>-<span style="color: #000000;">603</span>.jdbc3
Managed ROOT<span style="color: #000000; font-weight: bold;">/</span>pom.xml
roo<span style="color: #000000; font-weight: bold;">&gt;</span> new persistent class jpa <span style="color: #660033;">-name</span> ~.domain.PortalUser 
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser.java
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_Entity.aj
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_ToString.aj
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_Configurable.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field string <span style="color: #660033;">-class</span> ~.domain.PortalUser <span style="color: #660033;">-fieldName</span> phoneNumber <span style="color: #660033;">-notNull</span> <span style="color: #660033;">-sizeMax</span> <span style="color: #000000;">20</span>
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser.java
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_JavaBean.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field string <span style="color: #660033;">-class</span> ~.domain.PortalUser <span style="color: #660033;">-fieldName</span> password <span style="color: #660033;">-notNull</span> <span style="color: #660033;">-sizeMax</span> <span style="color: #000000;">50</span>
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser.java
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_JavaBean.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field boolean <span style="color: #660033;">-class</span> ~.domain.PortalUser <span style="color: #660033;">-fieldName</span> needChangePassword <span style="color: #660033;">-notNull</span> 
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser.java
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_JavaBean.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field string <span style="color: #660033;">-class</span> ~.domain.PortalUser <span style="color: #660033;">-fieldName</span> lastName <span style="color: #660033;">-sizeMax</span> <span style="color: #000000;">200</span>           
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser.java
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_JavaBean.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field string <span style="color: #660033;">-class</span> ~.domain.PortalUser <span style="color: #660033;">-fieldName</span> firstName <span style="color: #660033;">-sizeMax</span> <span style="color: #000000;">200</span>
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser.java
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_JavaBean.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field string <span style="color: #660033;">-class</span> ~.domain.PortalUser <span style="color: #660033;">-fieldName</span> middleName <span style="color: #660033;">-sizeMax</span> <span style="color: #000000;">200</span>
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser.java
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_JavaBean.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUser_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> new persistent class jpa <span style="color: #660033;">-name</span> ~.domain.Payment <span style="color: #660033;">-testAutomatically</span> 
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment.java
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PaymentDataOnDemand.java
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PaymentIntegrationTest.java
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment_Roo_Entity.aj
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment_Roo_ToString.aj
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment_Roo_Configurable.aj
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PaymentDataOnDemand_Roo_Configurable.aj
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PaymentDataOnDemand_Roo_DataOnDemand.aj
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PaymentIntegrationTest_Roo_IntegrationTest.aj
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PaymentIntegrationTest_Roo_Configurable.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> new persistent class jpa <span style="color: #660033;">-name</span> ~.domain.Service <span style="color: #660033;">-testAutomatically</span> 
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service.java
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>ServiceDataOnDemand.java
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>ServiceIntegrationTest.java
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service_Roo_Entity.aj
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service_Roo_ToString.aj
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service_Roo_Configurable.aj
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>ServiceDataOnDemand_Roo_Configurable.aj
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>ServiceDataOnDemand_Roo_DataOnDemand.aj
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>ServiceIntegrationTest_Roo_IntegrationTest.aj
Created SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>ServiceIntegrationTest_Roo_Configurable.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field string <span style="color: #660033;">-class</span> ~.domain.Service <span style="color: #660033;">-fieldName</span> name <span style="color: #660033;">-notNull</span> <span style="color: #660033;">-sizeMax</span> <span style="color: #000000;">50</span>
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service.java
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service_Roo_JavaBean.aj
Managed SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>ServiceDataOnDemand_Roo_DataOnDemand.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field string <span style="color: #660033;">-class</span> ~.domain.Service <span style="color: #660033;">-fieldName</span> description <span style="color: #660033;">-sizeMax</span> <span style="color: #000000;">500</span>        
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service.java
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service_Roo_JavaBean.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field boolean <span style="color: #660033;">-class</span> ~.domain.Service <span style="color: #660033;">-fieldName</span> isEnabled <span style="color: #660033;">-notNull</span> 
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service.java
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service_Roo_JavaBean.aj
Managed SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>ServiceDataOnDemand_Roo_DataOnDemand.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field string <span style="color: #660033;">-class</span> ~.domain.Service <span style="color: #660033;">-fieldName</span> logoName <span style="color: #660033;">-notNull</span> <span style="color: #660033;">-sizeMax</span> <span style="color: #000000;">200</span> 
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service.java
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service_Roo_JavaBean.aj
Managed SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>ServiceDataOnDemand_Roo_DataOnDemand.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Service_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field reference jpa <span style="color: #660033;">-class</span> ~.domain.Payment <span style="color: #660033;">-fieldName</span> service <span style="color: #660033;">-type</span> ~.domain.Service
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment.java
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment_Roo_JavaBean.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field reference jpa <span style="color: #660033;">-class</span> ~.domain.Payment <span style="color: #660033;">-fieldName</span> portalUser <span style="color: #660033;">-type</span> ~.domain.PortalUser
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment.java
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment_Roo_JavaBean.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> add field number <span style="color: #660033;">-class</span> ~.domain.Payment <span style="color: #660033;">-fieldName</span> amount <span style="color: #660033;">-type</span> java.math.Decimal
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment.java
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment_Roo_JavaBean.aj
Managed SRC_TEST_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PaymentDataOnDemand_Roo_DataOnDemand.aj
Managed SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>Payment_Roo_ToString.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> new controller automatic <span style="color: #660033;">-name</span> ~.web.PortalUserController <span style="color: #660033;">-formBackingObject</span> ~.domain.PortalUser
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>web
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>web<span style="color: #000000; font-weight: bold;">/</span>PortalUserController.java
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>testportal-servlet.xml
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>web<span style="color: #000000; font-weight: bold;">/</span>PortalUserController_Roo_Controller.aj
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>images
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>banner-graphic.png
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>springsource-logo.png
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>styles
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>styles<span style="color: #000000; font-weight: bold;">/</span>roo.css
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>header.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>footer.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>includes.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>dataAccessFailure.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>resourceNotFound.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>uncaughtException.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>list.png
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>show.png
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>create.png
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>update.png
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>images<span style="color: #000000; font-weight: bold;">/</span>delete.png
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>portaluser
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>portaluser<span style="color: #000000; font-weight: bold;">/</span>list.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>portaluser<span style="color: #000000; font-weight: bold;">/</span>show.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>portaluser<span style="color: #000000; font-weight: bold;">/</span>create.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>menu.jsp
Managed SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>menu.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>portaluser<span style="color: #000000; font-weight: bold;">/</span>update.jsp
Managed SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>menu.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>urlrewrite.xml
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>web.xml
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>index.jsp
Managed SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>web.xml
Managed ROOT<span style="color: #000000; font-weight: bold;">/</span>pom.xml
roo<span style="color: #000000; font-weight: bold;">&gt;</span> new controller automatic <span style="color: #660033;">-name</span> ~.web.crud.ServiceController <span style="color: #660033;">-formBackingObject</span> ~.domain.Service 
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>web<span style="color: #000000; font-weight: bold;">/</span>crud
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>web<span style="color: #000000; font-weight: bold;">/</span>crud<span style="color: #000000; font-weight: bold;">/</span>ServiceController.java
Managed SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>web.xml
Managed ROOT<span style="color: #000000; font-weight: bold;">/</span>pom.xml
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>web<span style="color: #000000; font-weight: bold;">/</span>crud<span style="color: #000000; font-weight: bold;">/</span>ServiceController_Roo_Controller.aj
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>service
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>service<span style="color: #000000; font-weight: bold;">/</span>list.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>service<span style="color: #000000; font-weight: bold;">/</span>show.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>service<span style="color: #000000; font-weight: bold;">/</span>create.jsp
Managed SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>menu.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>service<span style="color: #000000; font-weight: bold;">/</span>update.jsp
Managed SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>menu.jsp
roo<span style="color: #000000; font-weight: bold;">&gt;</span> new controller automatic <span style="color: #660033;">-name</span> ~.web.crud.PaymentController <span style="color: #660033;">-formBackingObject</span> ~.domain.Payment
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>web<span style="color: #000000; font-weight: bold;">/</span>crud<span style="color: #000000; font-weight: bold;">/</span>PaymentController.java
Managed SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>web.xml
Managed ROOT<span style="color: #000000; font-weight: bold;">/</span>pom.xml
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUserEditor.java
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>ServiceEditor.java
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>web<span style="color: #000000; font-weight: bold;">/</span>crud<span style="color: #000000; font-weight: bold;">/</span>PaymentController_Roo_Controller.aj
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>payment
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>payment<span style="color: #000000; font-weight: bold;">/</span>list.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>payment<span style="color: #000000; font-weight: bold;">/</span>show.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>payment<span style="color: #000000; font-weight: bold;">/</span>create.jsp
Managed SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>menu.jsp
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>payment<span style="color: #000000; font-weight: bold;">/</span>update.jsp
Managed SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>jsp<span style="color: #000000; font-weight: bold;">/</span>menu.jsp
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>PortalUserEditor_Roo_Editor.aj
Created SRC_MAIN_JAVA<span style="color: #000000; font-weight: bold;">/</span>ru<span style="color: #000000; font-weight: bold;">/</span>test<span style="color: #000000; font-weight: bold;">/</span>testportal<span style="color: #000000; font-weight: bold;">/</span>domain<span style="color: #000000; font-weight: bold;">/</span>ServiceEditor_Roo_Editor.aj
roo<span style="color: #000000; font-weight: bold;">&gt;</span> configure logging <span style="color: #660033;">-level</span> DEBUG <span style="color: #660033;">-package</span> PROJECT 
Created SRC_MAIN_RESOURCES<span style="color: #000000; font-weight: bold;">/</span>META-INF<span style="color: #000000; font-weight: bold;">/</span>spring<span style="color: #000000; font-weight: bold;">/</span>log4j.properties
Managed SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>web.xml
roo<span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #c20cb9; font-weight: bold;">install</span> security
Managed ROOT<span style="color: #000000; font-weight: bold;">/</span>pom.xml
Created SRC_MAIN_RESOURCES<span style="color: #000000; font-weight: bold;">/</span>META-INF<span style="color: #000000; font-weight: bold;">/</span>spring<span style="color: #000000; font-weight: bold;">/</span>applicationContext-security.xml
Created SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>login.jsp
Managed SRC_MAIN_WEBAPP<span style="color: #000000; font-weight: bold;">/</span>WEB-INF<span style="color: #000000; font-weight: bold;">/</span>web.xml</pre></td></tr></table></div>

<p>В результате получаем вполне работающее веб-приложение.</p>
<p>Следующий этап &#8211; загрузить приложение в мое любимое IDE, а именно IntelliJ IDEA. Тут меня ждал первый подвох &#8211; текущая релизная версия 8.1 не поддерживает файлы .aj, которые активно используются в полученном проекте. Единственныый вариант &#8211; сказать IDEA, что это просто текстовые файлы. Все возможности по рефакторингу и кросс-ссылочности сразу пропадают. Более того, все методы, определенные в .aj и использованые в других местах (например, в контроллерах) считаются неопределенными. Что сводит все возможности инспекции этого IDE просто бесполезными. Ладно, можно попробовать 9.0 M1 под кодовым названием Maia.</p>
<p>В Maia все несколько лучше &#8211; файлы .aj все считаются файлами с кодом. Но методы, определенные в .aj файлах, по прежнему не считаются &laquo;правильными&raquo; методами. И при их использование IDEA показывает ошибку. Таким образом, приходится признать, что использование Spring Roo совместно с IDEA пока не представляется возможным.</p>
<p>Использование &laquo;родного&raquo; инструментария <a href="http://www.springsource.com/products/sts">SpringSource Tool Suite</a> не наделено всеми описанными проблемами, но это Eclipse, а значит лично мне пользоваться очень неудобно.</p>
<p>Вывод: проект, однозначно, интересный, но не подходит для моих практических задач по причине отсутствия поддержки в IDEA.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kurdyukov.com/2009/10/10/spring-roo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Как бороться с WebSphere 6.1</title>
		<link>http://www.kurdyukov.com/2009/10/09/websphere-6-1-tuning/</link>
		<comments>http://www.kurdyukov.com/2009/10/09/websphere-6-1-tuning/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 06:03:07 +0000</pubDate>
		<dc:creator>alik</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[websphere]]></category>

		<guid isPermaLink="false">http://www.kurdyukov.com/?p=100</guid>
		<description><![CDATA[Волею судеб, мне надо было размещать мое веб-приложение на java на сервере IBM WebSphere Application Server 6.1. Оказалось, что это задача не вполне банальна, поскольку с полпинка все не заработало. Выяснилось, что надо производить следующие настройки&#8230; Работа редиректа По умолчанию, WebSphere начинает проверять наличие URL до того, как фильтры типа URLRewriteFilter применяются к входящему адресу. [...]]]></description>
			<content:encoded><![CDATA[<p>Волею судеб, мне надо было размещать мое веб-приложение на java на сервере IBM WebSphere Application Server 6.1. Оказалось, что это задача не вполне банальна, поскольку с полпинка все не заработало. Выяснилось, что надо производить следующие настройки&#8230;<br />
<span id="more-100"></span></p>
<h4>Работа редиректа</h4>
<p>По умолчанию, WebSphere начинает проверять наличие URL до того, как фильтры типа URLRewriteFilter применяются к входящему адресу. Что приводит к полной неработоспособности приложений, который URLRewriteFilter используют. Для починки этой проблемы надо установить параметр &laquo;com.ibm.ws.webcontainer.invokefilterscompatibility&raquo; в &laquo;true&raquo;. (как именно устанавливать &#8211; см. ниже)</p>
<h4>Версия JDK для компиляции JSP</h4>
<p>Не мог себе отказать в удобстве использования синтаксиса java 1.5 в коде jsp. Но WebSphere отказалась компилировать, ссылаясь на неизвестный синтаксис for each. Чтобы для компиляции jsp использовалась java 1.5, надо установить параметр &raquo;   	  com.ibm.ws.jsp.jdkSourceLevel&raquo; в значение &laquo;15&#8243;.</p>
<h4>Как устанавливать параметры</h4>
<ol>
<li>Открываете консоль управления WebSphere</li>
<li>Раскрываете &laquo;Servers&raquo;</li>
<li>Выбираете &laquo;Application Servers&raquo;</li>
<li>Выбираете название сервера, на котором стоит приложение</li>
<li>Раскрываете &laquo;Web Container Settings&raquo; (справа)</li>
<li>Выбираете &laquo;Web Container&raquo;</li>
<li>Выбираете &laquo;Custom Properties&raquo;</li>
<li>Нажимаете кнопку &laquo;New&raquo;</li>
<li>В открывшемся окне заполняете название поля и значение поля, нажимаете &laquo;update&raquo;</li>
<li>В появившемся над таблицей блоке выбираете Save</li>
<li>Перезапускаете сервер</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.kurdyukov.com/2009/10/09/websphere-6-1-tuning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maven, Coberturа и генерация базы</title>
		<link>http://www.kurdyukov.com/2009/09/11/maven-cobertur%d0%b0-hibernate/</link>
		<comments>http://www.kurdyukov.com/2009/09/11/maven-cobertur%d0%b0-hibernate/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 06:00:51 +0000</pubDate>
		<dc:creator>alik</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://www.kurdyukov.com/?p=76</guid>
		<description><![CDATA[В одном из моих проектов coverage кода вычисляется при помощи Cobertura. Этот инструмент считается одним из наиболее адекватных open source инструментов и хорошо интегрирован с Maven. Но у меня возникла проблема с взаимодействием Cobertura и Hibernate3. В рамках проекта БД создается через goal hbm2ddl мавеновского плагина hibernate3-maven-plugin. На том же проходе создается тестовая БД. На [...]]]></description>
			<content:encoded><![CDATA[<p>В одном из моих проектов coverage кода вычисляется при помощи <a href="http://cobertura.sourceforge.net/">Cobertura</a>. Этот инструмент считается одним из наиболее адекватных open source инструментов и хорошо интегрирован с Maven. Но у меня возникла проблема с взаимодействием Cobertura и Hibernate3.<br />
<span id="more-76"></span><br />
В рамках проекта БД создается через goal hbm2ddl мавеновского плагина hibernate3-maven-plugin. На том же проходе создается тестовая БД. На тестовой БД тестируется продукт. Для построение отчета по покрытию необходимо инструментировать код системы перед запуском тестов. И тут случается проблема, которая выглядит примерно так:</p>
<pre>
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to load class declared as
<mapping class="ru.myproject.MyEntity"/> in the configuration:
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.hibernate.MappingException: Unable to load class declared as
<mapping class="ru.myproject.MyEntity"/> in the configuration:
        at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:650)
        at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1589)
        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1568)
        at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:1047)
        at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:64)
        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1542)
        at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:1035)
        at org.hibernate.cfg.AnnotationConfiguration.doConfigure(AnnotationConfiguration.java:64)
        at org.hibernate.cfg.Configuration.configure(Configuration.java:1477)
        at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:1023)
        at org.hibernate.cfg.AnnotationConfiguration.configure(AnnotationConfiguration.java:64)
        at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.doConfiguration(AbstractComponentConfiguration.java:95)
        at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration.java:56)
        at org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(Hbm2DDLExporterMojo.java:87)
        at org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:152)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:1168)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:1009)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:627)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        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 org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.ClassNotFoundException: ru.myproject.MyEntity
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
        at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
        at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
        at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:123)
        at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:647)
        ... 36 more
</pre>
<p>Очевидно, что проблема в загрузке классов, но какая именно &#8211; непонятно. Исследование интернета показало, что я не первый наступил на эти &laquo;грабли&raquo;. И что единственное известное решение &#8211; отключить создание DDL и заливку его в БД при помощи инструментированного кода. Для этого в POM файле используем следующую заплатку:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p76code5'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p765"><td class="code" id="p76code5"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.codehaus.mojo<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>hibernate3-maven-plugin<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>2.2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;components<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;component<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>hbm2ddl<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;implementation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>annotationconfiguration<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/implementation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/component<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/components<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;componentProperties<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;drop<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>${hibernate.export}<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/drop<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;export<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>${hibernate.export}<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/export<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;jdk5<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/jdk5<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertyfile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>target/classes/jdbc.properties<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/propertyfile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;outputfilename<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>schema.sql<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/outputfilename<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #808080; font-style: italic;">&lt;!-- this is a special define for site building. Have to be turned off to build a site --&gt;</span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;skip<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>${hibernate.ddl.skip}<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/skip<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/componentProperties<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;executions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;execution<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;phase<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>process-test-resources<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/phase<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;goals<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;goal<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>hbm2ddl<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/goal<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/goals<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;componentProperties<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
					<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;drop<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/drop<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
					<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;export<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/export<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
				<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/componentProperties<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/execution<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/executions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dependencies<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>${jdbc.groupId}<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>${jdbc.artifactId}<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>${jdbc.version}<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dependencies<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>Можно обратить внимание на параметр hibernate.ddl.skip, которым можно управлять из командной строки. Примерно так:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p76code6'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p766"><td class="code" id="p76code6"><pre class="bash" style="font-family:monospace;">mvn -Dhibernate.ddl.skip=<span style="color: #c20cb9; font-weight: bold;">true</span> cobertura:cobertura</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.kurdyukov.com/2009/09/11/maven-cobertur%d0%b0-hibernate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Редактирование БД в Intellij IDEA</title>
		<link>http://www.kurdyukov.com/2009/09/08/edit-db/</link>
		<comments>http://www.kurdyukov.com/2009/09/08/edit-db/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 12:02:33 +0000</pubDate>
		<dc:creator>alik</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[idea]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.kurdyukov.com/?p=65</guid>
		<description><![CDATA[При разработке приложений с использованием СУБД часто возникает задача посмотреть на содержимое таблиц в БД. В моем случае, проект разрабатывается в Intellij IDEA, версия 8.1. Хочется смотреть и редактировать БД непосредственно из среды разработки. В моем случае используется СУБД PostgreSQL. Я проверил имеющиеся в IDEA бесплатные плагины на предмет работоспособности. DBHelper Ссылка: Plugin homepage Проверить [...]]]></description>
			<content:encoded><![CDATA[<p>При разработке приложений с использованием СУБД часто возникает задача посмотреть на содержимое таблиц в БД. В моем случае, проект разрабатывается в Intellij IDEA, версия 8.1. Хочется смотреть и редактировать БД непосредственно из среды разработки. В моем случае используется СУБД PostgreSQL.</p>
<p><span id="more-65"></span><br />
Я проверил имеющиеся в IDEA бесплатные плагины на предмет работоспособности.</p>
<p><strong>DBHelper</strong><br />
Ссылка: <a href="http://plugins.intellij.net/plugin/?id=1120">Plugin homepage</a><br />
Проверить не удалось, поскольку текущая последняя версия 1.2.02 не совместима с IDEA 8.1. Поддержка этого плагина, судя по всему, прекращена.</p>
<p><strong>Database Navigator</strong><br />
Ссылка: <a href="http://plugins.intellij.net/plugin/?id=1800">Plugin homepage</a><br />
К сожалению, не применима к моему случаю, поскольку нет поддержки для PostgreSQL. Есть поддержка для Oracle и MySQL. На домашней странице плагина есть вопрос от пользователя о поддержке PostgreSQL, но автор отвечает что поддержки, скорее всего, не будет. Слишком мало запросов на PostgreSQL поступает.</p>
<p>Вывод: по состоянию на сейчас я не смог найти ни одного разумного плугина для решения этой простой задачи. Что печально. Буду использовать консоль psql по старинке.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kurdyukov.com/2009/09/08/edit-db/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

