- root
- domain (just my models, like Rails
.. Doesnt' know shit about the rest of the app (such as repositories, and the framework you are using.)
- repository (Create, update, search and delete your objects. This guy is just an interface and could have its specific implementation (DAO), but I don't think it is necessary)
- service (business rules)
- controller (this guy just know the service)
- domain (just my models, like Rails
- view (know nothing about all items above)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package uebung07; | |
import javax.swing.JOptionPane; | |
public class Vokalloescher { | |
static String eingabe = JOptionPane.showInputDialog("Geben Sie einen Text ein:"); | |
static String klein = eingabe.toLowerCase(); | |
public static boolean istEinVokal(char ch){ | |
switch(ch){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= javascript_tag do %> | |
container = $('#task'); | |
new app.Task(container, container.form); | |
<% end %> |
1) Failure:
MysqlConnectionTest#test_bad_connection [/Users/lauro/src/opensource/rails/rails/activerecord/test/cases/adapters/mysql2/connection_test.rb:20]:
[ActiveRecord::NoDatabaseError] exception expected, not
Class: <Mysql2::Error>
Message: <"Access denied for user 'rails'@'localhost' to database 'inexistent_activerecord_unittest'">
---Backtrace---
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/mysql2-0.3.15/lib/mysql2/client.rb:67:in `connect'
/opt/boxen/rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/mysql2-0.3.15/lib/mysql2/client.rb:67:in `initialize'
/Users/lauro/src/opensource/rails/rails/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `new'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ClasseDoYamate { | |
@inject | |
private Yamate yamate; | |
//bla bla bla | |
} |