Hi folks,
this is my second article on travel. It is about IBIZA! One of the most popular islands in Europe! It is known to be the island of entertainment/fun.
SAN ANTONI is the most touristic place of the island. EN BOSSA is known to be one of the best coasts of Ibiza as well, however EN BOSSA is full of local people instead of tourists. I advice you to book a hotel in SAN ANTONI. We chose an all-inclusive hotel - Hotel San Remo in SAN ANTONI. The hotel is nice with its swimming pool and its bar was close to the pool. You can enjoy your cocktails while watching the bright see. By the way the hotel was so close to the see, just a 30 seconds walk.
Location of the hotel was perfect however I cannot say the same things for its meals. We did not like the meals. Each time we found something to eat but I wish they were better. Next time I will book the same hotel without all-inclusive option.
Cafe Mambo and Cafe del Mar are the most popular cafes where you can watch sunset. After the sunset, they turn into a club. People dance in the club and on the beach.
"Drinking your mojito while watching sunset" is a tradition in Ibiza. First day, we went to Cafe Del Mar and ordered our Mojitos. Found out that a Mojito is 13 euros! Second day, we got our mojitos somewhere else but it was not as nice as Cafe del mar's. I can say that the mojito worths every penny we pay :)
We walk along the coast till Cafe Del Mar. It is about 2,5 km from our hotel. We enjoyed the walk, took photos, drank our glass of cocktail, watch the boats...
Most of the clubs (Ushuaia, Hardrock cafe, ...) are close to EN BOSSA side. Island is not as big as Mallorca. (Mallorca may be my next travel article ;) ) You can rent a moto and sightsee the island with it. Very funny!
Amnesia, Space and Ushuaia are some of the well-known clubs in Ibiza. Everyday a popular name takes stage in the clubs. You should choose one and attend! strongly recommended! We went to David Guetta in Ushuaia. Mondays are David Guetta-days. Cocoon, Fifty Cent, Tiesto, Robert Tickle are some other people having programs in Ibiza. Please buy your tickets online before you go to Ibiza. You may not find a ticket on the event day. Or it may be more expensive than the online ticket.
Water sports is another funny activity.
Transportation in Ibiza is easy. Buses are perfect for the transfer from airport to hotel and vice-versa. We took L9 for going to the hotel from airport. We haven't used taxi for 4 days! There is even a DiscoBus taking you to the clubs. Each club is one stop :) Everything is considered for fun/entertainment :)
world of a tiny "chocolatte cookie"
It's all about my life: coding, fashion and travelling ;)
19 Temmuz 2014 Cumartesi
10 Temmuz 2014 Perşembe
PL/ SQL
PL/SQL stands for Procedural Language extension of SQL.
Oracle uses a PL/SQL engine to processes the PL/SQL statements. A PL/SQL code can be stored in the client system (client-side) or in the database (server-side).
Oracle uses a PL/SQL engine to processes the PL/SQL statements. A PL/SQL code can be stored in the client system (client-side) or in the database (server-side).
PL/SQL Block consists of three sections:
- The Declaration section (optional).
- The Execution section (mandatory).
- The Exception (or Error) Handling section (optional)
DECLARE
Variable declaration
BEGIN
Program Execution
EXCEPTION
Exception handling
END;
Advantages of PL/SQL
- Block Structures: PL SQL consists of blocks of code, which can be nested within each other. Each block forms a unit of a task or a logical module. PL/SQL Blocks can be stored in the database and reused.
- Procedural Language Capability: PL SQL consists of procedural language constructs such as conditional statements (if else statements) and loops like (FOR loops).
- Better Performance: PL SQL engine processes multiple SQL statements simultaneously as a single block, thereby reducing network traffic.
- Error Handling: PL/SQL handles errors or exceptions effectively during the execution of a PL/SQL program. Once an exception is caught, specific actions can be taken depending upon the type of the exception or it can be displayed to the user with a message.
Later, I'll add a presentation prepared by me...
2 Temmuz 2014 Çarşamba
visitbrussels!
Hi,
I will present you a list of to do's in Brussels which is my favorite city in Europe!
Aşağıda toparlamaya çalıştığım liste umarım birilerinin işine yarar :)
Son olarak cikolatanin da anavatani belcika :) cesit cesit cikolata stoklayip dön ebilirsiniz:D
I will present you a list of to do's in Brussels which is my favorite city in Europe!
- Please see "Atomium" and "be.welcome" which is very similar to "iamsterdam".
- In "Mini Europe", there are tiny miniatures of the most popular attractions(for ex: Eiffel Tower...) in Europe. I say them miniatures, however if you photograph them people can think that you are really in Paris!
- You can go to "Grand place" by walking from the central train station. Grand place is really grand, and its architecture is wonderful! You should not miss to see "Manneken Pis" (the peeing boy) which is the symbol of Belgium.
- Warandepark is full of trees, you can rest there for a while. It is very close to the central train station!
- Delirium. One of the most popular bars in the world. It is said that there are more than 3000 types of beers there! You should try Kriek which is a special cherry-beer.
- In the road to Delirium, there is a peeing girl - Jeanneken Pis.
- In the road to Delirium, there is a restaurant named Chez Leon, famous with its mussels.
- One of the most famous meals in Belgium is "Carbonade". You can try it in Brussels Grill.
- You should eat waffle in Brussels. If you will go to Brugge, eat it in Brugge :)
- There is Autoworld in Jubelpark. It is one of the most popular car fairs in Europe. JubelPark is also a nice park to see and rest.
- Did you know that Cedric and Redkit are from Belgium? Have you ever watched their cartoons when you were a child? If yes, then you should visit "Belgium Comic Strip" museum, very close to the central train station.
- If you have time in your belgium travel, you should visit Brugge. Highly recommended! You can think that in Brugge you are in a fairytale!
- If you have more time, you can visit Ghent. There, you can drink your gassy white wine near the river. If you have more more time :P, you can visit Antwerp famous with its castle and harbour.
I've already seen the places I've written above. There are of course more places to sightsee:
- Terrace of "Bibliotheque Royale".
- Botanique Park
- Hardrock Cafe Brussels.
- Laken famous with its Chinese and Japanese architecture and restaurants.
Atomium
be.WELCOME
MINI EUROPE
GRAND PLACE
AUTOWORLD
DELIRIUM BAR
GHENT
JUBELPARK
WARANDEPARK
ANTWERP
------------------------------------------------------------------------------------------------------------------
Aşağıda toparlamaya çalıştığım liste umarım birilerinin işine yarar :)
- "Atomium" ve "iamsterdam"a benzeyen "be.welcome" yazan yer ayni civarda. Orayi mutlaka gorun.
- Yine o civarlarda "mini europe" var. Orada da avrupadaki unlu yerlerin (eiffel kulesi gbi) minyaturleri var. Minyatur derken maket gibi degil, fotograf ceksen, paris'te zannedilebilirsin :P buyuk sayilir yani.
- Merkez tren istasyonundan yurume mesafesinde "grand place" var, kocaman ve sahane bir mimarisi olan sehir meydani. Oralarda belcikanin sembolu olan çiş yapan cocuk heykeli "manneken pis" var.
- grand place'e yakin yesil bir park olan warandepark var, orada yuruyup temiz hava alabilirsiniz!
- delirium. Dunyaca unlu bari. Yine merkez tren istasyonundan yurume mesafesinde. 3000den fazla bira cesidi oldugu soyleniyor. Belcikanin birasi cok unlu zaten. Kriek denen visneli biralarindan tatmalisınız. Delirium'un ici de cok hos dizayn edilmis. Tavanlarda bira kapaklari var, tepsiler dev bira kapagi seklinde :)
- delirium'un sokaginda bir de çiş yapan kiz heykeli var, o da unlu. Jeanneken pis.
- delirium un sokaginda "chez leon" var. Belcikanin midyesi de unlu. Midye tava+patates tava+bira gbi menuleri var.midye severler deneyebilir.
- "carbonade" diye bir et yemekleri var, o da guzel. Onu da "brussels grill"de yiyebilirsiniz.
- belcikanin waffle'i da unlu :) brugge'e gidecekseniz orada yiyin ;)
- autoworld'de arabalari görebilirsiniz. Zaten avrupada sayili yerlerde olan hos bir fuar. Fuarin icinde bulundugu alanin da cok hos bir dogasi var. -> Burası aslında Jubelpark.
- redkit, cedric gbi cizgifilmlerin anavatani belcika.Merkez tren istasyonuna yurume mesafesindeki "belgian comic strip" müzesini gorebilirsiniz.
- Vaktiniz varsa oncelikle Brugge denen cok unlu masalsi kente gidin ki siddetle onerilir!!!!! 1 gününüzü ayırsanız yeter. Dedigim gibi waffle'larınızı orda yiyin :)
- Daha fazla vaktiniz varsa Ghent denen diger kente gecebilirsiniz. Ghent'te nehrin kiyisinda kopuklu ve gazli beyaz saraplarinizı yudumlayın. Cok daha fazla vaktiniz varsa limani ve kalesiyle unlu olan antwerp'e gidebilirsiniz. Antwerp'te deniz urunleri meshur.
Bunlar benim bizzat gördüğüm basic/en temel yerler. Benim todo listemde şunlar da var:
- Terasıyla ünlü Bibliotheque Royale.
- Botanik parkı
- Hardrock Cafe Brussels.
- Çin ve Japon mimarisiyle ünlü Laken.
Gördükten sonra detaylı bilgiyi veririm.
Son olarak cikolatanin da anavatani belcika :) cesit cesit cikolata stoklayip dön ebilirsiniz:D
1 Temmuz 2014 Salı
OpenJPA
The tutorial from which I learnt openJPA was mentioning about Apache Derby. I have written a small intro about Apache Derby in the following link ;)
Data is the most important part of all programs. We have been using databases and SQL statements for years. However, better approaches exists! Especially object-oriented approaches for data persistence is very useful.
Some examples: EJB, JDO, Hibernate, Toplink... (The last 2 are object-relational mapping tool)
Java persistence API = JPA (standard)
first introduced as a part of EJB 3.0.
openJPA is another solution for data persistency. There are 3 artifacts:
- entity class
- persistence.xml (in src/META-INF)
- A class through which you will insert, update or find an entity.
- Firstly, we should download openJPA from the following link:
http://openjpa.apache.org/downloads.html
- Then add the jars to the project's build-path.
Let's say we have a DB table CUSTOMER:
| NAME | PK? | TYPE | NULL? |
|---|---|---|---|
| CUST_ID | Y | INTEGER | NOT NULL |
| FIRST_NAME | VARCHAR(50) | NOT NULL | |
| LAST_NAME | VARCHAR(50) | ||
| STREET | VARCHAR(50) | ||
| APPT | VARCHAR(20) | NOT NULL | |
| CITY | VARCHAR(25) | ||
| ZIP_CODE | VARCHAR(10) | NOT NULL | |
| CUST_TYPE | VARCHAR(10) | NOT NULL | |
| LAST_UPDATED_TIME | TIMESTAMP | NOT NULL |
Now we should have an entity class like this:
package entity;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/*
* CUSTOMER ENTITY CLASS
*/
@EntityListeners({CustListner.class})
@Entity(name = "CUSTOMER") //Name of the entity
public class Customer implements Serializable{
@Id //signifies the primary key
@Column(name = "CUST_ID", nullable = false)
@GeneratedValue(strategy = GenerationType.AUTO)
private long custId;
@Column(name = "FIRST_NAME", nullable = false,length = 50)
private String firstName;
@Column(name = "LAST_NAME", length = 50)
private String lastName;
@Embedded
private Address address = new Address();
@Column(name = "CUST_TYPE", length = 10)
private String custType;
@Version
@Column(name = "LAST_UPDATED_TIME")
private Date updatedTime;
//Getters and setters
public long getCustId() {
return custId;
}
public void setCustId(long custId) {
this.custId = custId;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public Date getUpdatedTime() {
return updatedTime;
}
public void setUpdatedTime(Date updatedTime) {
this.updatedTime = updatedTime;
}
public Address getAddress() {
return address;
}
public void setAddress(Address address) {
this.address = address;
}
public String getCustType() {
return custType;
}
public void setCustType(String custType) {
this.custType = custType;
}
// ToString()
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("custId : " + custId);
sb.append(" First Name : " + firstName);
sb.append(" Last Name : " + lastName);
sb.append(" customer type : " + custType);
return sb.toString();
}
}
And here is the sample persistence.xml
<properties>
<property name="openjpa.ConnectionDriverName"
value="org.apache.derby.jdbc.EmbeddedDriver"/>
<property name="openjpa.ConnectionURL"
value="jdbc:derby:C:/Users/tr1t6321/ipeks"/>
<property name="openjpa.ConnectionUserName" value=""/>
<property name="openjpa.ConnectionPassword" value=""/>
<property name="openjpa.Log" value="DefaultLevel=TRACE"/>
</properties>
!!! persistence.xml should be in src/META-INF.
......Inheritance.....
1. @Table(name="CUSTOMER")
@Entity(name = "CUSTOMER") //Name of the entity
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="CUST_TYPE", discriminatorType=DiscriminatorType.STRING,length=10)
@DiscriminatorValue("RETAIL")
Let's insert some customer....
public static void main(String[] args) {
EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("testjpa");
EntityManager em = entityManagerFactory.createEntityManager();
EntityTransaction userTransaction = em.getTransaction();
userTransaction.begin();
//inserting Customer
Customer customer = new Customer();
customer.setFirstName("Charles");
customer.setLastName("Dickens");
customer.setCustType("RETAIL");
customer.getAddress().setStreet("10 Downing Street");
customer.getAddress().setAppt("1");
customer.getAddress().setCity("NewYork");
customer.getAddress().setZipCode("12345");
em.persist(customer);
userTransaction.commit();
OpenJPAEntityManager oem = OpenJPAPersistence.cast(em);
Object objId = oem.getObjectId(customer);
Customer cust = em.find(Customer.class, objId);
em.close();
entityManagerFactory.close();
System.out.println("Customer info: " + cust);
}
......Inheritance.....
1. @Table(name="CUSTOMER")
@Entity(name = "CUSTOMER") //Name of the entity
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="CUST_TYPE", discriminatorType=DiscriminatorType.STRING,length=10)
@DiscriminatorValue("RETAIL")
2. @Table(name="CUSTOMER")
@Entity(name = "CUSTOMERJOINED") //Name of the entity
@Inheritance(strategy=InheritanceType.JOINED)
@DiscriminatorColumn(name="CUST_TYPE", discriminatorType=DiscriminatorType.STRING,length=10)
@DiscriminatorValue("RETAIL")
3. @Table(name="CUSTOMER")
@Entity(name = "CUSTOMERTABLE") //Name of the entity
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public static void main(String[] args) {
EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory("testjpa");
EntityManager em = entityManagerFactory.createEntityManager();
EntityTransaction userTransaction = em.getTransaction();
userTransaction.begin();
//inserting Customer
Customer customer = new Customer();
customer.setFirstName("Charles");
customer.setLastName("Dickens");
customer.setCustType("RETAIL");
customer.getAddress().setStreet("10 Downing Street");
customer.getAddress().setAppt("1");
customer.getAddress().setCity("NewYork");
customer.getAddress().setZipCode("12345");
em.persist(customer);
userTransaction.commit();
OpenJPAEntityManager oem = OpenJPAPersistence.cast(em);
Object objId = oem.getObjectId(customer);
Customer cust = em.find(Customer.class, objId);
em.close();
entityManagerFactory.close();
System.out.println("Customer info: " + cust);
}
Some crucial points:
!!! While running your java project with openjpa; put the following argument to
Run > Run configurations> arguments
VM box: -javaagent:D:/apache-openjpa-2.3.0/openjpa-2.3.0.jar
Apache Derby
Apache Derby, an Apache DB subproject, is an open source relational database implemented entirely in Java and available under the Apache License, Version 2.0. Some key advantages include:
- Derby has a small footprint -- about 2.6 megabytes for the base engine and embedded JDBC driver.
- Derby is based on the Java, JDBC, and SQL standards.
- Derby provides an embedded JDBC driver that lets you embed Derby in any Java-based solution.
- Derby also supports the more familiar client/server mode with the Derby Network Client JDBC driver and Derby Network Server.
- Derby is easy to install, deploy, and use.
I used it while I was working with OpenJPA about which I will write a tutorial later.
1-Anyway, please download Derby from:
http://db.apache.org/derby/derby_downloads.html
2- In windows;
set DERBY_INSTALL=C:\Apache\db-derby-10.10.2.0-bin
3-In windows;
set CLASSPATH=%DERBY_INSTALL%\lib\derby.jar;%DERBY_INSTALL%\lib\derbytools.jar;.
4-In windows;
C:\> cd %DERBY_INSTALL%\bin
C:\Apache\db-derby-10.10.2.0-bin\bin> setEmbeddedCP.bat
5- If you put the jars in your classpath; then you can run this comment from anywhere in your computer:
> java org.apache.derby.tools.ij
After this command you can create new databases, run sql files and sql statements etc...
for example:
connect 'jdbc:derby:/home/bill/databases/MyDbTest';
disconnect;
!!! If you do not disconnect from the table, the java project running from Eclipse cannot connect to the Database and it throws exceptions.
28 Nisan 2013 Pazar
Erken baslayan dogumgunu :P
13 mayis dogumgunu senlinlerime erken basladim, kendime gediye alip duruyorum :D tabi bunda annemin de parmagi var...
İlki mango'dan gercek deri siyah stiletto :) annemin hediyesi.
Pembe bluz koton'dan. Cok acayip begenmesem de rengi pek bi seker gorundu gozume...
Nar cicegi ayakkabi trendyol'dan. Bambi indiriminden. 50 liraya alindi... Bi de indirim cekim vardi 30a geldi :D cok kaliteli degil kabul, ama yazin arada bi giyilesi...
Dantel bluz h&m'den. Hic tarzim degil, annemin gaziyla almis olabilirim... En kotu aksam gezmelerimde falan giyerim diyorum :)
Bu haftalik bu kadar
İlki mango'dan gercek deri siyah stiletto :) annemin hediyesi.
Pembe bluz koton'dan. Cok acayip begenmesem de rengi pek bi seker gorundu gozume...
Nar cicegi ayakkabi trendyol'dan. Bambi indiriminden. 50 liraya alindi... Bi de indirim cekim vardi 30a geldi :D cok kaliteli degil kabul, ama yazin arada bi giyilesi...
Dantel bluz h&m'den. Hic tarzim degil, annemin gaziyla almis olabilirim... En kotu aksam gezmelerimde falan giyerim diyorum :)
Bu haftalik bu kadar
Kaydol:
Kayıtlar (Atom)











