cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r419072 - in /incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial: ./ .settings/ src/ src/cayenne/ src/cayenne/tutorial/ src/cayenne/tutorial/auto/ webapp/ webapp/WEB-INF/
Date Tue, 04 Jul 2006 19:29:15 GMT
Author: aadamchik
Date: Tue Jul  4 12:29:14 2006
New Revision: 419072

URL: http://svn.apache.org/viewvc?rev=419072&view=rev
Log: (empty)

Added:
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.classpath
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.project
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.settings/
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.settings/org.eclipse.jdt.core.prefs
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.settings/org.eclipse.jdt.ui.prefs
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/README-tutorial-rop.txt   (with props)
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/jetty-realm.properties
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/jetty-run-config.xml
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/UntitledDomainMap.map.xml
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/UntitledDomainNode.driver.xml
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne.xml
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Artist.java
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Gallery.java
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Main.java
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Painting.java
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Artist.java
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Gallery.java
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Painting.java
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/WEB-INF/
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/WEB-INF/web.xml
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/detail.jsp
    incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/index.jsp

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.classpath
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.classpath?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.classpath (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.classpath Tue Jul  4 12:29:14 2006
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/cayenne-java"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/cayenne-tutorial-client"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.project
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.project?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.project (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.project Tue Jul  4 12:29:14 2006
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>cayenne-tutorial</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.settings/org.eclipse.jdt.core.prefs?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.settings/org.eclipse.jdt.core.prefs (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.settings/org.eclipse.jdt.core.prefs Tue Jul  4 12:29:14 2006
@@ -0,0 +1,253 @@
+#Sun Nov 06 11:58:01 MSK 2005
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.4
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=48
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=48
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=48
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=48
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=48
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=48
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=48
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=48
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=1
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines=true
+org.eclipse.jdt.core.formatter.comment.format_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
+org.eclipse.jdt.core.formatter.comment.line_length=90
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=90
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=space
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.settings/org.eclipse.jdt.ui.prefs
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.settings/org.eclipse.jdt.ui.prefs?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.settings/org.eclipse.jdt.ui.prefs (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/.settings/org.eclipse.jdt.ui.prefs Tue Jul  4 12:29:14 2006
@@ -0,0 +1,8 @@
+#Sun Nov 06 12:03:51 MSK 2005
+eclipse.preferences.version=1
+formatter_settings_version=8
+internal.default.compliance=user
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;com;
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?>\n<templates><template id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment" description\="Comment for getter method" context\="gettercomment_context" enabled\="true" deleted\="false" autoinsert\="true"/><template id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment" description\="Comment for setter method" context\="settercomment_context" enabled\="true" deleted\="false" autoinsert\="true"/><template id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment" description\="Comment for created constructors" context\="constructorcomment_context" enabled\="true" deleted\="false" autoinsert\="true"/><template id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment" description\="Comment for created Java files" context\="filecomment_context" enabled\="true" deleted\="false" autoinsert\="true">/*
 *\n * \n */</template><template id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment" description\="Comment for created types" context\="typecomment_context" enabled\="true" deleted\="false" autoinsert\="true">/**\n * @author \n */</template><template id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment" description\="Comment for fields" context\="fieldcomment_context" enabled\="true" deleted\="false" autoinsert\="true"/><template id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment" description\="Comment for non-overriding methods" context\="methodcomment_context" enabled\="true" deleted\="false" autoinsert\="true"/><template id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment" description\="Comment for overriding methods" context\="overridecomment_context" enabled\="true" deleted\="false" autoinsert\="true"/><template id\="org.eclipse.jdt.ui.text.codetemplates.newtype" na
 me\="newtype" description\="Newly created files" context\="newtype_context" enabled\="true" deleted\="false" autoinsert\="false">/* \=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\n * \n * The ObjectStyle Group Software License, version 1.1\n * ObjectStyle Group - http\://objectstyle.org/\n * \n * Copyright (c) 2002-2005, Andrei (Andrus) Adamchik and individual authors\n * of the software. All rights reserved.\n * \n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met\:\n * \n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * \n * 2. Redistributions in binary form must reproduce the above copyright\n *    notice, this list of conditions and the following disclaimer in\n *    the documentation and/or 
 other materials provided with the\n *    distribution.\n * \n * 3. The end-user documentation included with the redistribution, if any,\n *    must include the following acknowlegement\:\n *    "This product includes software developed by independent contributors\n *    and hosted on ObjectStyle Group web site (http\://objectstyle.org/)."\n *    Alternately, this acknowlegement may appear in the software itself,\n *    if and wherever such third-party acknowlegements normally appear.\n * \n * 4. The names "ObjectStyle Group" and "Cayenne" must not be used to endorse\n *    or promote products derived from this software without prior written\n *    permission. For written permission, email\n *    "andrus at objectstyle dot org".\n * \n * 5. Products derived from this software may not be called "ObjectStyle"\n *    or "Cayenne", nor may "ObjectStyle" or "Cayenne" appear in their\n *    names without prior written permission.\n * \n * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY
  EXPRESSED OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n * DISCLAIMED.  IN NO EVENT SHALL THE OBJECTSTYLE GROUP OR\n * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF\n * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\n * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\n * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n * \=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\=\n * \n * This software consists of voluntary contributions made by many\n * individuals and hosted on ObjectStyle Group web
  site.  For more\n * information on the ObjectStyle Group, please see\n * &lt;http\://objectstyle.org/&gt;.\n */\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock" description\="Code in new catch blocks" context\="catchblock_context" enabled\="true" deleted\="false" autoinsert\="true">${exception_var}.printStackTrace();</template><template id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody" description\="Code in created method stubs" context\="methodbody_context" enabled\="true" deleted\="false" autoinsert\="true">${body_statement}</template><template id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody" description\="Code in created constructor stubs" context\="constructorbody_context" enabled\="true" deleted\="false" autoinsert\="true">${body_statement}</template><template id\="org.eclipse.jdt.ui.text.codetemplates.ge
 tterbody" name\="getterbody" description\="Code in created getters" context\="getterbody_context" enabled\="true" deleted\="false" autoinsert\="true">return ${field};</template><template id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody" description\="Code in created setters" context\="setterbody_context" enabled\="true" deleted\="false" autoinsert\="true">${field} \= ${param};</template></templates>

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/README-tutorial-rop.txt
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/README-tutorial-rop.txt?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/README-tutorial-rop.txt (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/README-tutorial-rop.txt Tue Jul  4 12:29:14 2006
@@ -0,0 +1,11 @@
+This is a Cayenne tutorial source code.
+
+The tutorial documentation is available as a part of Cayenne release and also on the web:
+
+  http://objectstyle.org/confluence/display/CAYDOC/Remote+Object+Persistence+Quick+Start
+
+If you DO NOT want to follow the tutorial steps, and simply need to browse the code, do this:
+
+* import this project to Eclipse, and open project properties
+* delete dependency on "cayenne-java" project 
+* add dependencies on two external Jars - cayenne.jar and derby.jar

Propchange: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/README-tutorial-rop.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/jetty-realm.properties
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/jetty-realm.properties?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/jetty-realm.properties (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/jetty-realm.properties Tue Jul  4 12:29:14 2006
@@ -0,0 +1 @@
+cayenne-user: secret,cayenne-service-user
\ No newline at end of file

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/jetty-run-config.xml
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/jetty-run-config.xml?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/jetty-run-config.xml (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/jetty-run-config.xml Tue Jul  4 12:29:14 2006
@@ -0,0 +1,41 @@
+<?xml version="1.0"  encoding="UTF-8"?>
+<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
+
+<Configure class="org.mortbay.jetty.Server">
+
+    <Call name="addListener">
+        <Arg>
+            <New class="org.mortbay.http.SocketListener">
+                <Set name="Port"><SystemProperty name="jetty.port" default="8080"/>
+                </Set>
+                <Set name="MinThreads">2</Set>
+                <Set name="MaxThreads">100</Set>
+                <Set name="MaxIdleTimeMs">30000</Set>
+                <Set name="LowResourcePersistTimeMs">5000</Set>
+                <Set name="PoolName">Listener</Set>
+                <Set name="ConfidentialPort">8443</Set>
+                <Set name="IntegralPort">8443</Set>
+            </New>
+        </Arg>
+    </Call>
+
+    <Set name="WebApplicationConfigurationClassNames">
+        <Array type="java.lang.String">
+            <Item>org.mortbay.jetty.servlet.XMLConfiguration</Item>
+        </Array>
+    </Set>
+	
+    <Call name="addRealm">
+        <Arg>
+            <New class="org.mortbay.http.HashUserRealm">
+                <Arg>Cayenne Realm</Arg>
+                <Arg><SystemProperty name="user.dir" default="."/>/jetty-realm.properties</Arg>
+            </New>
+        </Arg>
+    </Call>
+
+    <Call name="addWebApplication">
+        <Arg>/</Arg>
+        <Arg>webapp</Arg>
+    </Call>
+</Configure>
\ No newline at end of file

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/UntitledDomainMap.map.xml
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/UntitledDomainMap.map.xml?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/UntitledDomainMap.map.xml (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/UntitledDomainMap.map.xml Tue Jul  4 12:29:14 2006
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<data-map project-version="1.1">
+	<property name="defaultPackage" value="cayenne.tutorial"/>
+	<property name="clientSupported" value="true"/>
+	<property name="defaultClientPackage" value="cayenne.tutorial.client"/>
+	<db-entity name="ARTIST">
+		<db-attribute name="DATE_OF_BIRTH" type="DATE"/>
+		<db-attribute name="ID" type="INTEGER" isPrimaryKey="true" isMandatory="true"/>
+		<db-attribute name="NAME" type="VARCHAR" length="200"/>
+	</db-entity>
+	<db-entity name="GALLERY">
+		<db-attribute name="ID" type="INTEGER" isPrimaryKey="true" isMandatory="true"/>
+		<db-attribute name="NAME" type="VARCHAR" length="200"/>
+	</db-entity>
+	<db-entity name="PAINTING">
+		<db-attribute name="ARTIST_ID" type="INTEGER"/>
+		<db-attribute name="GALLERY_ID" type="INTEGER"/>
+		<db-attribute name="ID" type="INTEGER" isPrimaryKey="true" isMandatory="true"/>
+		<db-attribute name="NAME" type="VARCHAR" length="200"/>
+	</db-entity>
+	<obj-entity name="Artist" className="cayenne.tutorial.Artist" clientClassName="cayenne.tutorial.client.Artist" dbEntityName="ARTIST">
+		<obj-attribute name="dateOfBirth" type="java.util.Date" db-attribute-path="DATE_OF_BIRTH"/>
+		<obj-attribute name="name" type="java.lang.String" db-attribute-path="NAME"/>
+	</obj-entity>
+	<obj-entity name="Gallery" className="cayenne.tutorial.Gallery" clientClassName="cayenne.tutorial.client.Gallery" dbEntityName="GALLERY">
+		<obj-attribute name="name" type="java.lang.String" db-attribute-path="NAME"/>
+	</obj-entity>
+	<obj-entity name="Painting" className="cayenne.tutorial.Painting" clientClassName="cayenne.tutorial.client.Painting" dbEntityName="PAINTING">
+		<obj-attribute name="name" type="java.lang.String" db-attribute-path="NAME"/>
+	</obj-entity>
+	<db-relationship name="paintings" source="ARTIST" target="PAINTING" toMany="true">
+		<db-attribute-pair source="ID" target="ARTIST_ID"/>
+	</db-relationship>
+	<db-relationship name="paintings" source="GALLERY" target="PAINTING" toMany="true">
+		<db-attribute-pair source="ID" target="GALLERY_ID"/>
+	</db-relationship>
+	<db-relationship name="artist" source="PAINTING" target="ARTIST" toMany="false">
+		<db-attribute-pair source="ARTIST_ID" target="ID"/>
+	</db-relationship>
+	<db-relationship name="gallery" source="PAINTING" target="GALLERY" toMany="false">
+		<db-attribute-pair source="GALLERY_ID" target="ID"/>
+	</db-relationship>
+	<obj-relationship name="paintings" source="Artist" target="Painting" deleteRule="Cascade" db-relationship-path="paintings"/>
+	<obj-relationship name="paintings" source="Gallery" target="Painting" deleteRule="Cascade" db-relationship-path="paintings"/>
+	<obj-relationship name="artist" source="Painting" target="Artist" deleteRule="Nullify" db-relationship-path="artist"/>
+	<obj-relationship name="gallery" source="Painting" target="Gallery" deleteRule="Nullify" db-relationship-path="gallery"/>
+	<query name="DeleteAll" factory="org.objectstyle.cayenne.map.SQLTemplateBuilder" root="data-map" root-name="UntitledDomainMap">
+		<property name="cayenne.GenericSelectQuery.fetchingDataRows" value="true"/>
+		<sql><![CDATA[delete from $table]]></sql>
+	</query>
+</data-map>

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/UntitledDomainNode.driver.xml
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/UntitledDomainNode.driver.xml?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/UntitledDomainNode.driver.xml (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/UntitledDomainNode.driver.xml Tue Jul  4 12:29:14 2006
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<driver project-version="1.1" class="org.apache.derby.jdbc.EmbeddedDriver">
+	<url value="jdbc:derby:/Users/andrus/Desktop/testdb;create=true"/>
+	<connectionPool min="1" max="1" />
+</driver>

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne.xml
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne.xml?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne.xml (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne.xml Tue Jul  4 12:29:14 2006
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<domains project-version="1.1">
+<domain name="UntitledDomain">
+	<map name="UntitledDomainMap" location="UntitledDomainMap.map.xml"/>
+
+	<node name="UntitledDomainNode"
+		 datasource="UntitledDomainNode.driver.xml"
+		 factory="org.objectstyle.cayenne.conf.DriverDataSourceFactory">
+			<map-ref name="UntitledDomainMap"/>
+	 </node>
+</domain>
+</domains>

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Artist.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Artist.java?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Artist.java (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Artist.java Tue Jul  4 12:29:14 2006
@@ -0,0 +1,36 @@
+package cayenne.tutorial;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import cayenne.tutorial.auto._Artist;
+
+public class Artist extends _Artist {
+
+    static final String DEFAULT_DATE_FORMAT = "yyyyMMdd";
+
+    /**
+     * Sets date of birth using a string in format yyyyMMdd.
+     */
+    public void setDateOfBirthString(String yearMonthDay) {
+        if (yearMonthDay == null) {
+            setDateOfBirth(null);
+        }
+        else {
+
+            Date date;
+            try {
+                date = new SimpleDateFormat(DEFAULT_DATE_FORMAT).parse(yearMonthDay);
+            }
+            catch (ParseException e) {
+                throw new IllegalArgumentException("A date argument must be in format '"
+                        + DEFAULT_DATE_FORMAT
+                        + "': "
+                        + yearMonthDay);
+            }
+
+            setDateOfBirth(date);
+        }
+    }
+}

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Gallery.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Gallery.java?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Gallery.java (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Gallery.java Tue Jul  4 12:29:14 2006
@@ -0,0 +1,10 @@
+package cayenne.tutorial;
+
+import cayenne.tutorial.auto._Gallery;
+
+public class Gallery extends _Gallery {
+
+}
+
+
+

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Main.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Main.java?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Main.java (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Main.java Tue Jul  4 12:29:14 2006
@@ -0,0 +1,112 @@
+package cayenne.tutorial;
+
+import java.util.Calendar;
+import java.util.Collections;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import org.objectstyle.cayenne.DataObjectUtils;
+import org.objectstyle.cayenne.access.DataContext;
+import org.objectstyle.cayenne.exp.Expression;
+import org.objectstyle.cayenne.exp.ExpressionFactory;
+import org.objectstyle.cayenne.query.NamedQuery;
+import org.objectstyle.cayenne.query.QueryChain;
+import org.objectstyle.cayenne.query.SelectQuery;
+
+public class Main {
+
+    public static void main(String[] args) {
+
+        DataContext context = DataContext.createDataContext();
+
+        // cleans up all data, so that we start with empty database on each tutorial run
+        mappingQueriesChapter(context);
+
+        // persists an artist, a gallery and a few paintings
+        dataObjectsChapter(context);
+
+        // selects previously saved data
+        selectQueryChapter(context);
+
+        // deletes objects
+        deleteChapter(context);
+    }
+
+    static void dataObjectsChapter(DataContext context) {
+        Artist picasso = (Artist) context.newObject(Artist.class);
+        picasso.setName("Pablo Picasso");
+        picasso.setDateOfBirthString("18811025");
+
+        Gallery metropolitan = (Gallery) context.newObject(Gallery.class);
+        metropolitan.setName("Metropolitan Museum of Art");
+
+        Painting girl = (Painting) context.newObject(Painting.class);
+        girl.setName("Girl Reading at a Table");
+
+        Painting stein = (Painting) context.newObject(Painting.class);
+        stein.setName("Gertrude Stein");
+
+        picasso.addToPaintings(girl);
+        picasso.addToPaintings(stein);
+
+        girl.setGallery(metropolitan);
+        stein.setGallery(metropolitan);
+
+        context.commitChanges();
+    }
+
+    static void mappingQueriesChapter(DataContext context) {
+
+        QueryChain chain = new QueryChain();
+        chain.addQuery(new NamedQuery("DeleteAll", Collections.singletonMap(
+                "table",
+                "PAINTING")));
+        chain.addQuery(new NamedQuery("DeleteAll", Collections.singletonMap(
+                "table",
+                "ARTIST")));
+        chain.addQuery(new NamedQuery("DeleteAll", Collections.singletonMap(
+                "table",
+                "GALLERY")));
+
+        context.performGenericQuery(chain);
+
+    }
+
+    static void selectQueryChapter(DataContext context) {
+
+        // select all paintings
+        SelectQuery select1 = new SelectQuery(Painting.class);
+        List paintings1 = context.performQuery(select1);
+
+        // select paintings that start with "Gi*"
+        Expression qualifier2 = ExpressionFactory.likeIgnoreCaseExp(
+                Painting.NAME_PROPERTY,
+                "gi%");
+        SelectQuery select2 = new SelectQuery(Painting.class, qualifier2);
+        List paintings2 = context.performQuery(select2);
+
+        // select all paintings done by artists who were born more than a 100 years ago
+        Calendar c = new GregorianCalendar();
+        c.set(c.get(Calendar.YEAR) - 100, 0, 1, 0, 0, 0);
+
+        Expression qualifier3 = Expression.fromString("artist.dateOfBirth < $date");
+        qualifier3 = qualifier3.expWithParameters(Collections.singletonMap("date", c
+                .getTime()));
+        SelectQuery select3 = new SelectQuery(Painting.class, qualifier3);
+        List paintings3 = context.performQuery(select3);
+    }
+
+    static void deleteChapter(DataContext context) {
+        Expression qualifier = ExpressionFactory.matchExp(
+                Artist.NAME_PROPERTY,
+                "Pablo Picasso");
+        SelectQuery select = new SelectQuery(Artist.class, qualifier);
+
+        Artist picasso = (Artist) DataObjectUtils.objectForQuery(context, select);
+        if (picasso != null) {
+
+            context.deleteObject(picasso);
+            context.commitChanges();
+        }
+    }
+}

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Painting.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Painting.java?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Painting.java (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/Painting.java Tue Jul  4 12:29:14 2006
@@ -0,0 +1,10 @@
+package cayenne.tutorial;
+
+import cayenne.tutorial.auto._Painting;
+
+public class Painting extends _Painting {
+
+}
+
+
+

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Artist.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Artist.java?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Artist.java (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Artist.java Tue Jul  4 12:29:14 2006
@@ -0,0 +1,45 @@
+package cayenne.tutorial.auto;
+
+import java.util.List;
+
+/** Class _Artist was generated by Cayenne.
+  * It is probably a good idea to avoid changing this class manually, 
+  * since it may be overwritten next time code is regenerated. 
+  * If you need to make any customizations, please use subclass. 
+  */
+public class _Artist extends org.objectstyle.cayenne.CayenneDataObject {
+
+    public static final String DATE_OF_BIRTH_PROPERTY = "dateOfBirth";
+    public static final String NAME_PROPERTY = "name";
+    public static final String PAINTINGS_PROPERTY = "paintings";
+
+    public static final String ID_PK_COLUMN = "ID";
+
+    public void setDateOfBirth(java.util.Date dateOfBirth) {
+        writeProperty("dateOfBirth", dateOfBirth);
+    }
+    public java.util.Date getDateOfBirth() {
+        return (java.util.Date)readProperty("dateOfBirth");
+    }
+    
+    
+    public void setName(String name) {
+        writeProperty("name", name);
+    }
+    public String getName() {
+        return (String)readProperty("name");
+    }
+    
+    
+    public void addToPaintings(cayenne.tutorial.Painting obj) {
+        addToManyTarget("paintings", obj, true);
+    }
+    public void removeFromPaintings(cayenne.tutorial.Painting obj) {
+        removeToManyTarget("paintings", obj, true);
+    }
+    public List getPaintings() {
+        return (List)readProperty("paintings");
+    }
+    
+    
+}

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Gallery.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Gallery.java?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Gallery.java (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Gallery.java Tue Jul  4 12:29:14 2006
@@ -0,0 +1,36 @@
+package cayenne.tutorial.auto;
+
+import java.util.List;
+
+/** Class _Gallery was generated by Cayenne.
+  * It is probably a good idea to avoid changing this class manually, 
+  * since it may be overwritten next time code is regenerated. 
+  * If you need to make any customizations, please use subclass. 
+  */
+public class _Gallery extends org.objectstyle.cayenne.CayenneDataObject {
+
+    public static final String NAME_PROPERTY = "name";
+    public static final String PAINTINGS_PROPERTY = "paintings";
+
+    public static final String ID_PK_COLUMN = "ID";
+
+    public void setName(String name) {
+        writeProperty("name", name);
+    }
+    public String getName() {
+        return (String)readProperty("name");
+    }
+    
+    
+    public void addToPaintings(cayenne.tutorial.Painting obj) {
+        addToManyTarget("paintings", obj, true);
+    }
+    public void removeFromPaintings(cayenne.tutorial.Painting obj) {
+        removeToManyTarget("paintings", obj, true);
+    }
+    public List getPaintings() {
+        return (List)readProperty("paintings");
+    }
+    
+    
+}

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Painting.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Painting.java?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Painting.java (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/src/cayenne/tutorial/auto/_Painting.java Tue Jul  4 12:29:14 2006
@@ -0,0 +1,42 @@
+package cayenne.tutorial.auto;
+
+/** Class _Painting was generated by Cayenne.
+  * It is probably a good idea to avoid changing this class manually, 
+  * since it may be overwritten next time code is regenerated. 
+  * If you need to make any customizations, please use subclass. 
+  */
+public class _Painting extends org.objectstyle.cayenne.CayenneDataObject {
+
+    public static final String NAME_PROPERTY = "name";
+    public static final String ARTIST_PROPERTY = "artist";
+    public static final String GALLERY_PROPERTY = "gallery";
+
+    public static final String ID_PK_COLUMN = "ID";
+
+    public void setName(String name) {
+        writeProperty("name", name);
+    }
+    public String getName() {
+        return (String)readProperty("name");
+    }
+    
+    
+    public void setArtist(cayenne.tutorial.Artist artist) {
+        setToOneTarget("artist", artist, true);
+    }
+
+    public cayenne.tutorial.Artist getArtist() {
+        return (cayenne.tutorial.Artist)readProperty("artist");
+    } 
+    
+    
+    public void setGallery(cayenne.tutorial.Gallery gallery) {
+        setToOneTarget("gallery", gallery, true);
+    }
+
+    public cayenne.tutorial.Gallery getGallery() {
+        return (cayenne.tutorial.Gallery)readProperty("gallery");
+    } 
+    
+    
+}

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/WEB-INF/web.xml?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/WEB-INF/web.xml (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/WEB-INF/web.xml Tue Jul  4 12:29:14 2006
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+ <!DOCTYPE web-app
+   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+   "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+    <display-name>Cayenne Tutorial</display-name>
+    <filter>
+        <filter-name>CayenneFilter</filter-name>
+        <filter-class>org.objectstyle.cayenne.conf.WebApplicationContextFilter</filter-class>
+    </filter>
+    <filter-mapping>
+        <filter-name>CayenneFilter</filter-name>
+        <url-pattern>/</url-pattern>
+    </filter-mapping>
+    <filter-mapping>
+        <filter-name>CayenneFilter</filter-name>
+        <url-pattern>*.jsp</url-pattern>
+    </filter-mapping>
+    
+    <servlet>
+        <servlet-name>cayenne-service</servlet-name>
+        <servlet-class>org.objectstyle.cayenne.remote.hessian.service.HessianServlet</servlet-class>
+    </servlet>
+    <servlet-mapping>
+        <servlet-name>cayenne-service</servlet-name>
+        <url-pattern>/cayenne-service</url-pattern>
+    </servlet-mapping>	
+	
+    <welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+    </welcome-file-list>
+    
+    <security-constraint>
+        <web-resource-collection>
+            <web-resource-name>CayenneService</web-resource-name>
+            <url-pattern>/cayenne-service</url-pattern>
+        </web-resource-collection>
+        <auth-constraint>
+            <role-name>cayenne-service-user</role-name>
+        </auth-constraint>
+    </security-constraint>
+    
+    <login-config>
+        <auth-method>BASIC</auth-method>
+        <realm-name>Cayenne Realm</realm-name>
+    </login-config>
+	
+    <security-role>
+        <role-name>cayenne-service-user</role-name>
+    </security-role>
+
+</web-app>
\ No newline at end of file

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/detail.jsp
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/detail.jsp?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/detail.jsp (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/detail.jsp Tue Jul  4 12:29:14 2006
@@ -0,0 +1,68 @@
+<%@ page language="java" contentType="text/html" %>
+<%@ page import="cayenne.tutorial.*" %>
+<%@ page import="org.objectstyle.cayenne.*" %>
+<%@ page import="org.objectstyle.cayenne.access.*" %>
+<%@ page import="java.util.*" %>
+<%@ page import="java.text.*" %>
+
+<% 
+    DataContext context = DataContext.getThreadDataContext();
+    String id = request.getParameter("id");
+
+    // find artist for id
+    Artist artist = null;
+    if(id != null && id.trim().length() > 0) {
+        artist = (Artist) DataObjectUtils.objectForPK(context, Artist.class, Integer.parseInt(id));
+    }
+
+    if("POST".equals(request.getMethod())) {
+        // if no id is saved in the hidden field, we are dealing with
+        // create new artist request
+        if(artist == null) {
+            artist = (Artist) context.newObject(Artist.class);
+        }
+
+        // note that in a real application we would so dome validation ...
+        // here we just hope the input is correct
+        artist.setName(request.getParameter("name"));
+        artist.setDateOfBirthString(request.getParameter("dateOfBirth"));
+
+        context.commitChanges();
+
+        response.sendRedirect("index.jsp");
+    }
+
+    if(artist == null) {
+        // create transient artist for the form response rendering
+        artist = new Artist();
+    }
+
+    String name = artist.getName() == null ? "" : artist.getName();
+    String dob = artist.getDateOfBirth() == null
+            ? "" : new SimpleDateFormat("yyyyMMdd").format(artist.getDateOfBirth());
+%>
+<html>
+    <head>
+        <title>Artist Details</title>
+    </head>
+    <body>
+        <h2>Artists Details</h2>
+        <form name="EditArtist" action="detail.jsp" method="POST">
+            <input type="hidden" name="id" value="<%= id != null ? id : "" %>" />
+            <table border="0">
+                <tr>
+                    <td>Name:</td>
+                    <td><input type="text" name="name" value="<%= name %>"/></td>
+                </tr>
+                <tr>
+                    <td>Date of Birth (yyyyMMdd):</td>
+                    <td><input type="text" name="dateOfBirth" value="<%= dob %>"/></td>
+                </tr>
+                <tr>
+                    <td></td>
+                    <td align="right"><input type="submit" value="Save" /></td>
+                </tr>  
+            </table>
+        </form>
+    </body>	
+</html>
\ No newline at end of file

Added: incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/index.jsp
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/index.jsp?rev=419072&view=auto
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/index.jsp (added)
+++ incubator/cayenne/main/trunk/cayenne/tutorials/quick-start-rop/cayenne-tutorial/webapp/index.jsp Tue Jul  4 12:29:14 2006
@@ -0,0 +1,37 @@
+<%@ page language="java" contentType="text/html" %>
+<%@ page import="cayenne.tutorial.*" %>
+<%@ page import="org.objectstyle.cayenne.*" %>
+<%@ page import="org.objectstyle.cayenne.query.*" %>
+<%@ page import="org.objectstyle.cayenne.exp.*" %>
+<%@ page import="org.objectstyle.cayenne.access.*" %>
+<%@ page import="java.util.*" %>
+
+<% 
+    SelectQuery query = new SelectQuery(Artist.class);
+    query.addOrdering(Artist.NAME_PROPERTY, true);
+
+    DataContext context = DataContext.getThreadDataContext();
+    List artists = context.performQuery(query);
+%>
+<html>
+    <head>
+        <title>Main</title>
+    </head>
+    <body>
+        <h2>Artists:</h2>
+        
+        <% if(artists.isEmpty()) {%>
+        <p>No artists found</p>
+        <% } else { 
+            Iterator it = artists.iterator();
+            while(it.hasNext()) {
+                Artist a = (Artist) it.next();
+        %>
+        <p><a href="detail.jsp?id=<%=DataObjectUtils.intPKForObject(a)%>"> <%=a.getName()%> </a></p>
+        <%
+            }
+            } %>
+        <hr>
+        <p><a href="detail.jsp">Create new artist...</a></p>
+    </body>	
+</html>
\ No newline at end of file



Mime
View raw message