necati sekkeli

Greenhorn
+ Follow
since Jun 21, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by necati sekkeli

Thanks Paul. I am able to see the big picture and got the solution.
I think it depends on how much you use Hibernate before. In my opinion, Hibernate will be useful in design phase. But if you are a newbie in Hibernate , 5000 entities also can be handled without Hibernate too.
<class name="Customer" table="Customer">
<many-to-one name="adress" column="adress_id" class=". . .adress" cascade="save-update"/>

</class>

can be a solution. Cascade can be the problem. You can try to add cascade property to your customer xml.
I am also new to hibernate but after some tutorial and practice i discovered that HQL is more simple and also it has a java-like syntax. Also since it is integrated with java, you can take whole object (it can be any object) with one command. It is more high level than sql in my opinion.
Hi People,
I have a FactoryProduct class as an inner class inside my Factory class. I try to write 2 different xml files for them. But i can not map these files in the configuration file.

How can i map these inner class? Do you have any suggesions please?
Hi everybody,
I am also a newbie for Hibernate. And I wrote my codes with using ArrayLists. For example

private ArrayList<RegionFuelPrice> fuelPrices;

is declared in XML file like;

<list name="fuelPrices" cascade="all, delete-orphan">
<key column="id"/>
<index column="index_id"/>
<one-to-many class="RegionFuelPrice"/>
</list>


But everytime, i got ClassCastException like my friend. What do you think? When i look at the tutorials i can not find a reason for this code for not working. Can you help please?
Because the previously coded software uses hashMap and it will be too costly if we will try to change that design. It uses Serializable and User Defined parameter as variable.
Hi everybody,
I like to use HashMap in our software instead of Set but can not find a way for that. Can we only use set, bag and list? If we can use HashMap how can we define that in our XML files. Can you help please?

Thanks
As i know, java2me also covers calling last dialed number etc. I think you should look at the library.
19 years ago
Hi everybody,
can i use php with j2me? For example i want to direct a GSM phone via web page. If i can write a program that is executable on the web, i will be able do this.

Any help?
Thanks
19 years ago
i have sent you a private message for not disturbing the forum....
19 years ago
Hi!
I want to use OTAP process with my gprs modem. So first i define

at^sjotap="necati","http://localhost:8080/hello.jad","a:/","","","gprs","*99***1#","username","password",""

for the defined command

AT^SJOTAP: ("sms password"), ("jad url"), ("app dir"), ("http username"), ("httppassword"), ("csd"|"gprs"), ("access point name"|"Tel. num."), ("net username"),("net password"), ("dns")

and also take OK reply. And after that, i activate the otap with at^sjotap command. And at last, i send sms from my cell phone to the modem like

OTAP_IMP1.0
PWD:necati
APPDIR:a:/necati
START elete


it receives the sms but did not process. What can be the problem? Do i made something wrong? Help please
19 years ago
I do not know if it is possible with an easier way but logically you can use streamConnection to transfer a file to server.

Am i true?
19 years ago
if efficiency in a sorted list is important for you. You can use trees. In insert method you must find the place first and then place it. (it is done by creating a node and putting it to a leaf and rotating it up to its right place by comparing the values). Deletion will be the inverse of this.

Find is easier. You can traverse the tree basicly.
19 years ago
You are not supposed to write a constructor for each class. But a default constructor method (without any parameter) exists in class definiton. Also, writing constructor will give you opportunity to configure your class. (like constraints in some parameters).

On the other hand, for static classes, you do not need to use construct method as others say.
19 years ago