aggregation

Maven: Aggregation vs. Dependency

I'm very new to Maven and am just now trying to set up my first project tree. I'm struggling to understand the difference between two alternatives: I have jar and war projects (two each) that i want to bundle. Traditionally I'd just create an ear project that has all four of them as dependencies. Now I read about the aggregation of pom...

SQL Query Problem -- Are Pivots Necessary?

Given the following data: CardholderID Source DateTime -------------- ---------------------------------------- ----------------------- 3 2nd_Flr_Ramp_Out_Reader 2010-06-30 13:58:42.410 3 2nd_Flr_Ramp_In_Reader 2010-06-30 13:44:22.417 3 ...

Pentaho Aggregation Designer: Are the aggregation names generated usable

Hi I have used the aggregation designer to generate some tables. I just wanted to know is there anything else I have to modify in the cube definition xml? Currently it look likes the aggname name attribute values generated wont match correctly. Thanks ...

Linq2EF: Concat all values in another table into a string

Let's say I have two entities: Physician Credentials And a physician can have many credentials, such as Dr. Jones can have MD, DO, MPH as credentials. So I need to generate a report via Linq that concatenates the credentials into a single string. For example: from p in Physicians select { p.Name p.Credentials (??? <- concatenat...

how to create a news aggregator?

Planning to start a small aggregator for a personal project, so far I have a few inquiries on gathering information for the site. I'm still clueless on where to begin. what kind of infrastructure do i need? where do i get the feeds and can I sort them out depending on the theme of the info requested? any feedback is appreciated. thanks ...

Missing artifact when building child project with Maven 2

I have a parent project with 5 children having also dependencies between each other. I used both inheritence with <parent> element in the children pom.xml and aggregation with <module> element in the parent. My parent pom looks like this: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins...

Has-A Relationship

Hi all, public class Elevator () { Button firstFloorbutton = ButtonFactory.getButtonInstance(this, 1); Button secondFloorbutton = ButtonFactory.getButtonInstance(this, 2); Button thirdFloorbutton = ButtonFactory.getButtonInstance(this, 3); Button fourthFloorbutton = ButtonFactory.getButtonInstance(this, 4); Fan fan1 = ...

NoSQL or RDBMS for Data Analysis

Hi, i ask myself if i should try to use a NoSQL database or a SQL Database. I have read a lot, but would like to hear some people who hav experience with NoSQL. My situation is as follows: We have a not so complex relational database schema. We do reasearch on recommender systems and therefore monitor the user interactions with a specifi...

get data for one semester in mysql

dear all..i want to make some report which get data for one semester. this semester started at april and finished at september in each year. But for the second semester it will get data from october until march(next year). how do i do to make this grouping or aggregation? i'm just now the basic query like: select * from dt_tb where `dt`...

How can I use annotate() to count a subset of related models in Django?

I'm trying to use Django's annotate feature to add the count of a related model to a queryset. However, I don't want a full count of related objects, I only want to count the active ones (i.e., "is_active=True"). I can't figure out how to filter down the count. The (simplified) relevant models: class Post(models.Model): user = mode...

Experiences with logfaces.

Someone at my company stumbled upon logfaces. Does anyone have any experience with the product? Any input would be helpful. Basically we want a centralized place to check out our logs for multiple applications. Needs to support .net and Java at a minimum. Other products would be appreciated. Thanks ...

Aggregate bitwise-OR in a subquery

Given the following table: CREATE TABLE BitValues ( n int ) Is it possible to compute the bitwise-OR of n for all rows within a subquery? For example, if BitValues contains these 4 rows: +---+ | n | +---+ | 1 | | 2 | | 4 | | 3 | +---+ I would expect the subquery to return 7. Is there a way to do this inline, without creating a UDF...

[UML] Can a many-to-many relationship be an Aggregation? [Simple Question]

Hi, I have the following relationship: Route * ------ * RouteLeg I'd like to make this an Aggregation since a Route is composed by multiple RouteLegs. However, if I delete a Route, its RouteLegs do not necessarily get deleted too (although, most of the time, they will), since they may be used in other Routes. Is it appropriate to...

Exposing aggregation through the interface vs. delegation

I have an Employee object which aggregates a few other objects, such as HRData and AssignmentHistory. In the past all of this logic was contained directly in the Employee object, but for testability and manageability I've split it to use aggregation. However, instead of exposing the aggregate objects directly, I've used delegation so tha...