If we compare Windows and Web applications against following criteria
Insight of .NET and OS
Design Patterns
Logic development
Development of a fresher into a good developer
which one is better.
I want to pass some parameters (e.g string parameter = request.getParameter("blah")) from JSP page to XSL stylesheet for purposes of filtering the XML file based on some criteria which is the parameter to be passed. Is there any way how I can do it??
I'm used to Visual Studio, so in an ideal world I would like something that meets the following criteria:
Lightweight
CSS auto-complete
HTML auto-complete
CSS auto-formatting
HTML auto-formatting
Syntax highlighting
Notepad2 has syntax highlighting, but no auto-complete and no auto-formatting.
Any thoughts? Please don't answer with "Visual Studio"! I'm after something very lightweight (if it exists).
Hi.
Is it possible (using Hibernate and JPA2 Criteria Builder [1]) to order by a method's result rather than an entity's member?
public class X {
protected X() {}
public String member;
public String getEvaluatedValue() { // order by
return "some text " + member;
}
}
What I want to achive is order by the result of getEvaluatedValue(). Is that possible?
Thanks in advanced.
[1] http://docs.jboss.org/hibernate/entitymanager/3.5/reference/en/html_single/#querycriteria
Let's say:
I want to query colA, colB and colC in my table.
I want to see DISTINCT values but I don't want colA to be a criteria for distinction.
Omitting colA isn't an option.
What's the best way to structure that query?
I have convinced a company to change Crystal Reports. But then? What to use? Telerik?
I want:
designer
bind an object model, not a
denormalized view
execute from batch, generate report in batch
export to word or many other formats
reporting site
Uh, my backend is Progress Software, so ODBC driver. Or NHibernate objects...
I am looking for ORM frameworks, came along to NHibernate, Genome, L2S, Entity Framework and now the DataObjects.NET.. So far a I read the documentation it seems pretty cabable, but have you ever tried this ORM?
Any issues/bugs with DO.NET would be approciated :)
What makes a language a scripting language? I've heard some people say "when it gets interpreted instead of compiled". That would make PHP (for example) a scripting language. Is that the only criterion? Or are there other criteria?
List esns=session.createQuery("from Pool e where e.status=:status "+
"order by uuid asc")
.setString("status", "AVAILABLE")
.setMaxResults(n)
.setLockMode("e", LockMode.PESSIMISTIC_WRITE)
.list();
I have the above query written, however it is not generating for update query and simultaneous updates are happening.
I am using 3.5.2 version and it has a bug in Criteria API, is the same bug present in query API as well or I am doing something wrong?
In this query:
SELECT WTTEMPLATE.TEMPLATEuID,
MAX (WTTRX.VALUEDATE) AS template_last_use_date
FROM wttemplate, wttrx
WHERE WTTEMPLATE.TEMPLATEID = WTTRX.TEMPLATEID(+)
AND WTTEMPLATE.CUSTID = WTTRX.CUSTID
GROUP BY WTTEMPLATE.TEMPLATEuID
The explain plan shows:index fast full scan using indexes on WTTEMPLATE.TEMPLATEID and (WTTRX.TEMPLATEID,WTTRX.CUSTID). My question is this: I have not specified any filter criteria , so how can it use indexes? It should do full scan...right?
I'm creating a website using ASP.NET MVC 2 and I'm thinking of using the default AccountController and Views to take care of the Users.
The only problem is that, for all the rest, I'm using a Postgres database.
Is there a way to link The account controller to a User class defined by me?
I'm using Nhibernate to connect to the database, so I'll have a User class with whatever fields necessary.
Thanks very much.
I've seen some complex, enterprise tools for requirements like Rymatech's FeaturePlan -- is there something that enables collaboration and best practices for putting Business-Readable, Domain-Specific (or natural language) requirements and acceptance criteria in place?
Now I use Select and use a criteria which select only new rows. But is there any kind of GetInsertedRows-method. If I remember correctly there is status for each row so naturally one can loop through them all but that's not elegant.
-Cheers -Matti
Ok so i want to get an artists info from the db, but i want to know if they have any forthcoming events. To do this i need to traverse 2 tables, where events_artists is a 2 col link table...
(this doesnt work but is what id like to do)
SELECT art.*, events.event_id FROM art
LEFT JOIN events_artists
ON art.art_id = events_artists.art_id
LEFT JOIN events
ON events_artists.event_id = events.event_id IF ( {criteria} )
what should i be doing here to get this to work?!!
I am torn between postgreSQL and MySQL but I am forced to install the choosen one on windows. I especially need asp.net membership and i will be installing NHibernate as well.
Hi all,
I cannot manage to get a working regular expression (for use in ASP.NEt Validataor) for the following criteria:
- I want all chars from A-Z a-z 0-9
- I don't want the Enter key
I have the expression: [\w\s,.-/]*[^\n]
but that don't works.
Please give-me a hint, Thanks.
I'm curious if anyone has done any performance comparisons with any or all of the main players in the .NET ORM space. Specifically I'm interested in comparisons between the following:
Linq to SQL
NHibernate
LLBL Gen
Entity Framework
Though it seems people don't really consider Linq to SQL a true ORM, I am still including it in this list. Some performance metrics would be nice to see.
Is there an equivalence in Entity Framework to NHibernate SchemaExport?
Given I have a working Entity-Model, I would like to programmatically initialize a database.
I would like to use this functionality in the setup of my integration tests.
Creating the matching DDL for an Entity-Model would also suffice.
Hi!
I have the following code:
Criteria crit = sess.createCriteria(Product.class);
ProjectionList proList = Projections.projectionList();
proList.add(Projections.property("name"));
proList.add(Projections.property("price"));
crit.setProjection(proList);
But I also have User.class and I would like the name to be restricted on User.class and price from Product class.
How can I restrict different columns on different objects in Hibernate Search?
Entity Framework currently supports table valued functions and custom functions defined in the SSDL, but I can't find any example of it being used as a criteria, in the where clause.
Example:
var query = this.db.People; query = query.Where(p =
FullText.ContainsInName(p.Id, "George"));
In this example, ContainsInName is my custom function that I want to be executed in the where clause of the query.
Is it supported?
I was psyched about the possibility of using SQLite as a database solution during development so that I could focus on writing the code first and dynamically generating the db at runtime using NHibernate's ShemaExport functionality. However, I'm running into a few issues, not the least of which is that it seems that SQLite requires me to use Int64 for my primary keys (vs, say, Int32 or Guid). Is there any way around this?
what java method takes an int and returns +1 or -1? the criteria for this is weather or not the int is positive or negative. I looked through the documentation but i'm bad at reading it and i can't find it. I know i've seen it somewhere though.
Is there a way I can have a google maps control on a web page that will allow users to select destinations as a search criteria?
For example we would like a user to be able to select a country, city, state by clicking on it in a map?
Is that even doable?
The first one below works, but, just wanted to see if there's a better way...
If I'm trying to find all records that start with 'C' with either a flag of 2 or a status of 9, do I need to incorporate the 'C' criteria twice?
i.e.,
"SELECT * FROM mytable WHERE name like 'C%' AND flag = 2 OR name like 'C%' AND status = 9"
Or, is there a way quicker way to write it so that I only need to set 'C%' once?
I have a MySQL table with a column called "priority". The column can have two values: high or low. I want to select 8 records from the table at random, but I want 6 of them to be high priority, and 2 of them to be low priority. If possibly, I would like to do it in one SQL statement. Is there any way to do two LIMITS in one query based on this kind of criteria?