Donnerstag, 9. September 2010

JPA Annotations

http://www.jpox.org/docs/1_2/jpa/annotations.html


Must haves:
@Entity
class MyClass
@Id 
@Column(name = "ID", nullable = false)
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;  //ID property is mandatory!! 
@Version private int version 

1:1 unidirectional  invoice -> order
class Invoice
 @OneToOne(optional=false)//optional false = inner join, default TRUE = outer join
 @JoinColumn(name = "ORDER_ID") 
 private Order order;       

1:1 bidirectional invoice <-> order (as unidirectional plus:)
class Order
@OneToOne(optional=false,   cascade=CascadeType.ALL,  
   mappedBy="order",
   targetEntity=Invoice.class)
private Invoice invoice;       

N:1 biderectional
Class Order
@ManyToOne(optional=false)
@JoinColumn(name="CUST_ID",     referencedColumnName="CUST_ID")
private Customer customer;
class Customer @OneToMany(mappedBy="customer", targetEntity=Order.class, fetch=FetchType.EAGER) private Collection orders; N:N uniderectional class order
@ManyToMany(fetch=FetchType.EAGER)
 @JoinTable(name="ORDER_DETAIL",
            joinColumns= @JoinColumn( name="ORDER_ID", 
                                      referencedColumnName="ORDER_ID"),
                                      inverseJoinColumns= @JoinColumn(
                                      name="PROD_ID", 
                                      referencedColumnName="PROD_ID")
           )

Jboss Ports (e.g. you need to open your firewall between a tomcat and jboss)

1099 JNDI 
1098 JNDI RMI Port 
4444 JRMP (RMI) Object Port 


8093 JMS (UIL2 XAConnectionFactory) 
1100 JNDI 
4446 RmiObjectPort for JNDI 
4445 RMI/JRMP Invoker (Port of EJB's)

IEEE 829 Testplan Template

  1. Test Plan Identifier
  2. Introduction
  3. Test Items
  4. Features To Be Tested
  5. Features Not To Be Tested
  6. Approach
  7. Item Pass/Fail Criteria
  8. Suspension Criteria And Resumption Requirements
  9. Test Deliverables
  10. Testing Tasks
  11. Environmental Needs
  12. Responsibilities
  13. Staffing And Training Needs
  14. Schedule
  15. Risks And Contingencies
  16. Approvals

Lastenheft - Inhalt

  1. Ausgangssituation und Zielsetzung
  2. Produkteinsatz
  3. Produktübersicht
  4. Funktionale Anforderungen
  5. Nicht funktionale Anforderungen
  6. Risikoakzeptanz
  7. Skizze des Entwicklungszyklus und der Systemarchitektur oder auch ein Struktogramm
  8. Lieferumfang
  9. Abnahmekriterien

Test case outline

  • Introduction/overview contains general information about Test case.
    • Identifier is unique identifier of test case for further references, for example, while describing found defect.
    • Test case owner/creator is name of tester or test designer, who created test or is responsible for its development
    • Version of current Test case definition
    • Name of test case should be human-oriented title which allows to quickly understand test case purpose and scope.
    • Identifier of requirement which is covered by test case. Also here could be identifier of use case or functional specificationitem.
    • Purpose contains short description of test purpose, what functionality it checks.
    • Dependencies
  • Test case activity
    • Testing environment/configuration contains information about configuration of hardware or software which must be met while executing test case
    • Initialization describes actions, which must be performed before test case execution is started. For example, we should open some file.
    • Finalization describes actions to be done after test case is performed. For example if test case crashes database, tester should restore it before other test cases will be performed.
    • Actions step by step to be done to complete test.
    • Input data description
  • Expected results contains description of what tester should see after all test steps has been completed

Sun Tzu

Sun Tzu said: "If words of command are not clear and distinct, if orders are not thoroughly understood, then the general is to blame."
So he started drilling them again, and this time gave the order "Left turn," whereupon the girls once more burst into fits of laughter. Sun Tzu: "If words of command are not clear and distinct, if orders are not thoroughly understood, the general is to blame. But if his orders ARE clear, and the soldiers nevertheless disobey, then it is the fault of their officers."
So saying, he ordered the leaders of the two companies to be beheaded.

The Rules of Stand Up

  1. The first rule of Stand Up is, you do not talk while someone else is talking. 
  2. The second rule of Stand Up is, you DO NOT talk while someone else is talking. 
  3. You talk fast and you keep it moving fast. 
  4. Tell us what you did yesterday. 
  5. Tell us what you FAILED to do yesterday. 
  6. Tell us what you will do today. 
  7. Tell us who is BLOCKING you today. 
  8. If this is your first day at Stand Up, you have to talk.
from:- i am pretty sorry, but i do not recall where i found it! I would be happy to link the right source!

The rules of 'fight club'

  1. The first rule of Fight Club is, you do not talk about Fight Club.
  2. The second rule of Fight Club is, you DO NOT talk about Fight Club.
  3. If someone says stop, goes limp, taps out, the fight is over.
  4. Two guys to a fight.
  5. One fight at a time.
  6. No shirts, no shoes.
  7. Fights will go on as long as they have to.
  8. If this is your first night at Fight Club, you have to fight.
from "The fight club" movie

The format of a user story

The format of a user story is:
As a [some user], 
I want [to do something], 
so that [I can achieve some goal]